Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009965/0.0009964, allocations: 91.45 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008428/0.008428, allocations: 172.5 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.409/2.409, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.000367, allocations: 8.188 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.698/0.6983, allocations: 142.4 MB / 0.955 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.3136/1.012, allocations: 298.8 MB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.7369/1.749, allocations: 25.71 MB / 1.272 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006221/1.755, allocations: 108.1 kB / 1.272 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005755/1.761, allocations: 1.544 MB / 1.274 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01626/1.777, allocations: 5.625 MB / 1.279 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009062/1.786, allocations: 2.383 MB / 1.281 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01667/1.803, allocations: 12.41 MB / 1.293 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005069/1.808, allocations: 2.987 MB / 1.296 GB, free: 17.82 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01219/1.82, allocations: 3.55 MB / 1.3 GB, free: 17.76 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006464/1.827, allocations: 2.942 MB / 1.303 GB, free: 17.74 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0007386/1.828, allocations: 151.5 kB / 1.303 GB, free: 17.74 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01075/1.838, allocations: 5.275 MB / 1.308 GB, free: 17.7 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.002057/1.84, allocations: 1.428 MB / 1.309 GB, free: 17.69 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.003758/1.844, allocations: 1.882 MB / 1.311 GB, free: 17.66 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01162/1.856, allocations: 6.744 MB / 1.318 GB, free: 17.28 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/1.856, allocations: 3.938 kB / 1.318 GB, free: 17.28 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.287e-06/1.856, allocations: 0 / 1.318 GB, free: 17.28 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002199/1.856, allocations: 0 / 1.318 GB, free: 17.28 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.008144/1.864, allocations: 3.425 MB / 1.321 GB, free: 15.55 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/1.864, allocations: 9.688 kB / 1.321 GB, free: 15.55 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005951/1.87, allocations: 0.9428 MB / 1.322 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003991/1.874, allocations: 2.26 MB / 1.324 GB, free: 14.71 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/1.875, allocations: 280.8 kB / 1.325 GB, free: 14.64 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003938/1.875, allocations: 286.6 kB / 1.325 GB, free: 14.64 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005529/1.881, allocations: 3.365 MB / 1.328 GB, free: 14.37 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.225e-05/1.881, allocations: 8.906 kB / 1.328 GB, free: 14.37 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/1.881, allocations: 115.7 kB / 1.328 GB, free: 14.37 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.32e-05/1.881, allocations: 112.8 kB / 1.328 GB, free: 14.36 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004097/1.885, allocations: 2.804 MB / 1.331 GB, free: 14.32 MB / 1.014 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01558/1.901, allocations: 13.26 MB / 1.344 GB, free: 5.129 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/1.903, allocations: 1.684 MB / 1.346 GB, free: 4.902 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/1.904, allocations: 1.107 MB / 1.347 GB, free: 4.754 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004992/1.905, allocations: 329.8 kB / 1.347 GB, free: 4.449 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/1.905, allocations: 65.12 kB / 1.347 GB, free: 4.406 MB / 1.014 GB Notification: Performance of pre-optimization done (n=182): time 5.2e-06/1.905, allocations: 0 / 1.347 GB, free: 4.406 MB / 1.014 GB Notification: Performance of matching and sorting (n=182): time 0.004858/1.91, allocations: 2.739 MB / 1.35 GB, free: 3.898 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/1.91, allocations: 72.69 kB / 1.35 GB, free: 3.832 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/1.913, allocations: 1.996 MB / 1.352 GB, free: 3.27 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0003315/1.913, allocations: 67.14 kB / 1.352 GB, free: 3.238 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009941/1.914, allocations: 1.411 MB / 1.353 GB, free: 2.562 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007216/1.915, allocations: 0.6449 MB / 1.354 GB, free: 2.09 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/1.915, allocations: 165.8 kB / 1.354 GB, free: 2.051 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001014/1.915, allocations: 312.4 kB / 1.354 GB, free: 1.746 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/1.916, allocations: 0.8041 MB / 1.355 GB, free: 1.621 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/1.918, allocations: 1.41 MB / 1.357 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/1.921, allocations: 2.256 MB / 1.359 GB, free: 128 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/1.921, allocations: 2.688 kB / 1.359 GB, free: 128 kB / 1.014 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003841/1.924, allocations: 2.511 MB / 1.361 GB, free: 15.69 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003207/1.925, allocations: 495.3 kB / 1.362 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/1.925, allocations: 13.06 kB / 1.362 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.271e-05/1.925, allocations: 25.44 kB / 1.362 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/1.927, allocations: 0.5566 MB / 1.362 GB, free: 15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/1.929, allocations: 4.155 MB / 1.366 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003532/1.933, allocations: 395.9 kB / 1.367 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/1.933, allocations: 90.73 kB / 1.367 GB, free: 10.66 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.933, allocations: 8.438 kB / 1.367 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003063/1.936, allocations: 2.231 MB / 1.369 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/1.936, allocations: 11.22 kB / 1.369 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/1.936, allocations: 26.12 kB / 1.369 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/1.938, allocations: 481.7 kB / 1.369 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.743e-05/1.938, allocations: 27.66 kB / 1.369 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003371/1.941, allocations: 379.5 kB / 1.37 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/1.942, allocations: 86.3 kB / 1.37 GB, free: 10.14 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001852/1.943, allocations: 0.8627 MB / 1.371 GB, free: 9.848 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005465/1.944, allocations: 269.7 kB / 1.371 GB, free: 9.711 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003127/1.947, allocations: 2.109 MB / 1.373 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/1.947, allocations: 19.09 kB / 1.373 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/1.947, allocations: 0 / 1.373 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002326/1.95, allocations: 1.888 MB / 1.375 GB, free: 8.809 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007666/1.957, allocations: 5.192 MB / 1.38 GB, free: 7.258 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/1.957, allocations: 3.375 kB / 1.38 GB, free: 7.258 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002204/1.959, allocations: 0.4892 MB / 1.38 GB, free: 7.176 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-05/1.959, allocations: 13.12 kB / 1.381 GB, free: 7.172 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/1.96, allocations: 59.41 kB / 1.381 GB, free: 7.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/1.961, allocations: 4.123 MB / 1.385 GB, free: 3.031 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.961, allocations: 4.562 kB / 1.385 GB, free: 3.031 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004541/1.966, allocations: 3.241 MB / 1.388 GB, free: 0.7188 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.967, allocations: 0.5604 MB / 1.388 GB, free: 252 kB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/1.968, allocations: 44.69 kB / 1.388 GB, free: 236 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002215/1.97, allocations: 253.3 kB / 1.389 GB, free: 8 kB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/1.97, allocations: 116.8 kB / 1.389 GB, free: 15.91 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/1.97, allocations: 66.66 kB / 1.389 GB, free: 15.86 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001929/1.972, allocations: 1.336 MB / 1.39 GB, free: 14.54 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.8e-07/1.972, allocations: 8 kB / 1.39 GB, free: 14.53 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.004096/1.976, allocations: 1.706 MB / 1.392 GB, free: 12.82 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007197/1.977, allocations: 367 kB / 1.392 GB, free: 12.49 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.005865/1.983, allocations: 3.325 MB / 1.395 GB, free: 9.277 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.983, allocations: 4 kB / 1.395 GB, free: 9.273 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001662/1.985, allocations: 1.025 MB / 1.396 GB, free: 8.293 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009206/1.994, allocations: 1.598 MB / 1.398 GB, free: 6.699 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/2.005, allocations: 8.15 MB / 1.406 GB, free: 14.54 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002183/2.007, allocations: 2.182 MB / 1.408 GB, free: 12.32 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.005184/2.012, allocations: 1.102 MB / 1.409 GB, free: 11.21 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007562/2.013, allocations: 219.4 kB / 1.409 GB, free: 11 MB / 1.061 GB Notification: Performance of SimCode: time 1.012e-06/2.013, allocations: 0 / 1.409 GB, free: 11 MB / 1.061 GB Notification: Performance of Templates: time 0.09491/2.108, allocations: 52.64 MB / 1.461 GB, free: 7.254 MB / 1.107 GB make -j1 -f Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches