Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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) 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(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009074/0.0009075, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0008858/0.0008858, allocations: 180.9 kB / 17.2 MB, free: 5.914 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.329/1.329, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002581/0.0002583, allocations: 6.375 kB / 300.7 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0912/0.09148, allocations: 50.43 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.3692/0.4607, allocations: 165.9 MB / 0.5049 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01325/0.474, allocations: 10.05 MB / 0.5148 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009154/0.475, allocations: 27.81 kB / 0.5148 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.4761, allocations: 366.2 kB / 0.5151 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006425/0.4826, allocations: 2.367 MB / 0.5174 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004625/0.4872, allocations: 1.911 MB / 0.5193 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002069/0.4893, allocations: 1.427 MB / 0.5207 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009911/0.4903, allocations: 0.6432 MB / 0.5213 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004211/0.4945, allocations: 2.097 MB / 0.5234 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.4956, allocations: 0.7517 MB / 0.5241 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001495/0.4958, allocations: 60 kB / 0.5242 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009066/0.5049, allocations: 5.212 MB / 0.5293 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005473/0.5054, allocations: 447 kB / 0.5297 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003414/0.5058, allocations: 237.2 kB / 0.5299 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004695/0.5105, allocations: 2.923 MB / 0.5328 GB, free: 7.766 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.5105, allocations: 4 kB / 0.5328 GB, free: 7.762 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5105, allocations: 0 / 0.5328 GB, free: 7.762 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.5105, allocations: 0 / 0.5328 GB, free: 7.762 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.003715/0.5143, allocations: 1.796 MB / 0.5345 GB, free: 5.898 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.5143, allocations: 8.031 kB / 0.5345 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003863/0.5147, allocations: 130.6 kB / 0.5347 GB, free: 5.762 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.5158, allocations: 0.666 MB / 0.5353 GB, free: 5.055 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.5159, allocations: 133.4 kB / 0.5354 GB, free: 4.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.5161, allocations: 83.98 kB / 0.5355 GB, free: 4.828 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001968/0.5181, allocations: 1.444 MB / 0.5369 GB, free: 3.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.5181, allocations: 4 kB / 0.5369 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.5182, allocations: 43.91 kB / 0.537 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-05/0.5183, allocations: 81.84 kB / 0.5371 GB, free: 3.191 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/0.5204, allocations: 1.452 MB / 0.5385 GB, free: 1.742 MB / 414.1 MB 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.007959/0.5283, allocations: 6.385 MB / 0.5447 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.5301, allocations: 0.9759 MB / 0.5457 GB, free: 9.949 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001296/0.5314, allocations: 1.797 MB / 0.5474 GB, free: 7.766 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.5314, allocations: 47.55 kB / 0.5475 GB, free: 7.711 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004238/0.5319, allocations: 106.9 kB / 0.5476 GB, free: 7.605 MB / 430.1 MB Notification: Performance of pre-optimization done (n=84): time 3.186e-06/0.5319, allocations: 0 / 0.5476 GB, free: 7.605 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.01586/0.5477, allocations: 4.943 MB / 0.5524 GB, free: 2.609 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.5478, allocations: 111.8 kB / 0.5525 GB, free: 2.477 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009092/0.5487, allocations: 0.7737 MB / 0.5533 GB, free: 1.695 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.5489, allocations: 45.7 kB / 0.5533 GB, free: 1.645 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.5491, allocations: 451.2 kB / 0.5537 GB, free: 1.195 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002556/0.5494, allocations: 343.1 kB / 0.5541 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.709e-05/0.5495, allocations: 28 kB / 0.5541 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.5497, allocations: 410.7 kB / 0.5545 GB, free: 428 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.5508, allocations: 0.6038 MB / 0.5551 GB, free: 15.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001313/0.5521, allocations: 0.9498 MB / 0.556 GB, free: 14.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.5534, allocations: 0.7949 MB / 0.5568 GB, free: 13.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.5535, allocations: 0 / 0.5568 GB, free: 13.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003513/0.557, allocations: 1.913 MB / 0.5586 GB, free: 11.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001227/0.5582, allocations: 4.064 MB / 0.5626 GB, free: 7.582 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.5583, allocations: 12 kB / 0.5626 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001655/0.5599, allocations: 328.5 kB / 0.5629 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.561, allocations: 271.5 kB / 0.5632 GB, free: 6.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.5626, allocations: 0.927 MB / 0.5641 GB, free: 6.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.5637, allocations: 111.8 kB / 0.5642 GB, free: 5.918 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.5639, allocations: 71.97 kB / 0.5643 GB, free: 5.848 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/0.5639, allocations: 4 kB / 0.5643 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003323/0.5672, allocations: 1.804 MB / 0.566 GB, free: 4.027 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.5672, allocations: 11.94 kB / 0.566 GB, free: 4.016 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/0.5688, allocations: 336.7 kB / 0.5664 GB, free: 3.684 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.5699, allocations: 271.5 kB / 0.5666 GB, free: 3.418 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.5715, allocations: 0.9193 MB / 0.5675 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.5727, allocations: 107.8 kB / 0.5676 GB, free: 2.367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.5729, allocations: 71.94 kB / 0.5677 GB, free: 2.297 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.000784/0.5737, allocations: 417.3 kB / 0.5681 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.5739, allocations: 94.88 kB / 0.5682 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003777/0.5777, allocations: 1.979 MB / 0.5701 GB, free: 15.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.5777, allocations: 12 kB / 0.5701 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5777, allocations: 0 / 0.5701 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.5777, allocations: 7.922 kB / 0.5701 GB, free: 15.76 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005034/0.5828, allocations: 3.134 MB / 0.5732 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.5828, allocations: 0 / 0.5732 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000826/0.5836, allocations: 175.8 kB / 0.5734 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001888/0.5855, allocations: 400.5 kB / 0.5737 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.393e-05/0.5856, allocations: 35.98 kB / 0.5738 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.5869, allocations: 0.8957 MB / 0.5747 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.587, allocations: 4.031 kB / 0.5747 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003912/0.5909, allocations: 2.474 MB / 0.5771 GB, free: 8.441 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000658/0.5916, allocations: 344.5 kB / 0.5774 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/0.5917, allocations: 24 kB / 0.5774 GB, free: 8.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009167/0.5927, allocations: 79.92 kB / 0.5775 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.5928, allocations: 80.83 kB / 0.5776 GB, free: 7.902 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.5929, allocations: 51.97 kB / 0.5776 GB, free: 7.852 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006554/0.5936, allocations: 0.5458 MB / 0.5782 GB, free: 7.312 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5936, allocations: 0 / 0.5782 GB, free: 7.312 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002887/0.5965, allocations: 1.12 MB / 0.5793 GB, free: 6.191 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[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 (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002373/0.5989, allocations: 1.04 MB / 0.5803 GB, free: 5.152 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004601/0.6035, allocations: 2.636 MB / 0.5828 GB, free: 2.477 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.6035, allocations: 4.438 kB / 0.5828 GB, free: 2.473 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.6048, allocations: 0.74 MB / 0.5836 GB, free: 1.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.607, allocations: 499.6 kB / 0.584 GB, free: 1.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.163/0.77, allocations: 2.905 MB / 0.5869 GB, free: 172.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005408/0.7706, allocations: 1.141 MB / 0.588 GB, free: 172.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002097/0.7727, allocations: 0.6813 MB / 0.5887 GB, free: 172.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.773, allocations: 109.8 kB / 0.5888 GB, free: 172.1 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.773, allocations: 0 / 0.5888 GB, free: 172.1 MB / 462.1 MB Notification: Performance of Templates: time 0.06547/0.8385, allocations: 37.34 MB / 0.6252 GB, free: 148.4 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches