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.001028/0.001028, allocations: 90.88 kB / 17.31 MB, free: 5.59 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.001274/0.001275, allocations: 177.8 kB / 18.21 MB, free: 5.191 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.348/1.348, allocations: 223.3 MB / 242.3 MB, free: 176 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002873, allocations: 11.94 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09455/0.09486, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.7436/0.8385, allocations: 201.7 MB / 0.5412 GB, free: 1.191 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.8524, allocations: 10.63 MB / 0.5516 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/0.8539, allocations: 28.06 kB / 0.5516 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.8555, allocations: 417.9 kB / 0.552 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009858/0.8654, allocations: 2.817 MB / 0.5548 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008358/0.8738, allocations: 2.313 MB / 0.557 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004949/0.8787, allocations: 3.778 MB / 0.5607 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00154/0.8803, allocations: 0.6662 MB / 0.5614 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007604/0.8879, allocations: 2.496 MB / 0.5638 GB, free: 0.582 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002814/0.8908, allocations: 1.08 MB / 0.5649 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005756/0.8914, allocations: 58.47 kB / 0.5649 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01565/0.907, allocations: 6.492 MB / 0.5713 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001541/0.9086, allocations: 498.7 kB / 0.5717 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002333/0.911, allocations: 0.6015 MB / 0.5723 GB, free: 15.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009644/0.9206, allocations: 3.242 MB / 0.5755 GB, free: 14.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.9207, allocations: 2.906 kB / 0.5755 GB, free: 14.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.9207, allocations: 0 / 0.5755 GB, free: 14.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.83e-05/0.9208, allocations: 0 / 0.5755 GB, free: 14.41 MB / 446.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.00635/0.9272, allocations: 1.818 MB / 0.5773 GB, free: 13.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.9272, allocations: 11.31 kB / 0.5773 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008863/0.9281, allocations: 129.6 kB / 0.5774 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001755/0.9299, allocations: 0.677 MB / 0.5781 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.9301, allocations: 139.2 kB / 0.5782 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003474/0.9305, allocations: 92.86 kB / 0.5783 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003356/0.9338, allocations: 1.456 MB / 0.5797 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-05/0.9339, allocations: 9.656 kB / 0.5797 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.9341, allocations: 37.41 kB / 0.5798 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.9342, allocations: 70.5 kB / 0.5798 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002644/0.9369, allocations: 1.467 MB / 0.5813 GB, free: 11.88 MB / 446.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.01062/0.9475, allocations: 6.341 MB / 0.5874 GB, free: 7.688 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/0.9495, allocations: 0.9922 MB / 0.5884 GB, free: 7.512 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000877/0.9504, allocations: 0.518 MB / 0.5889 GB, free: 7.434 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002067/0.9525, allocations: 1.799 MB / 0.5907 GB, free: 5.406 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9e-05/0.9526, allocations: 51.5 kB / 0.5907 GB, free: 5.363 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000915/0.9536, allocations: 108.8 kB / 0.5908 GB, free: 5.305 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 7.844e-06/0.9536, allocations: 0 / 0.5908 GB, free: 5.305 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01832/0.9719, allocations: 4.948 MB / 0.5957 GB, free: 1.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/0.972, allocations: 117.7 kB / 0.5958 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.9733, allocations: 0.7738 MB / 0.5965 GB, free: 104 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002106/0.9736, allocations: 45.7 kB / 0.5966 GB, free: 52 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004092/0.974, allocations: 453.8 kB / 0.597 GB, free: 15.61 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003994/0.9744, allocations: 341.6 kB / 0.5973 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/0.9747, allocations: 105.7 kB / 0.5974 GB, free: 15.16 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002423/0.9749, allocations: 402.7 kB / 0.5978 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.9762, allocations: 0.6155 MB / 0.5984 GB, free: 14.15 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.9778, allocations: 0.9656 MB / 0.5994 GB, free: 13.04 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003108/0.981, allocations: 1.666 MB / 0.601 GB, free: 11.26 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/0.981, allocations: 4 kB / 0.601 GB, free: 11.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004489/0.9855, allocations: 1.955 MB / 0.6029 GB, free: 9.336 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004717/0.986, allocations: 451.1 kB / 0.6033 GB, free: 8.746 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/0.986, allocations: 12 kB / 0.6033 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/0.9877, allocations: 328.4 kB / 0.6037 GB, free: 8.414 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.9888, allocations: 267.2 kB / 0.6039 GB, free: 8.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.9906, allocations: 0.9288 MB / 0.6048 GB, free: 7.223 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.9921, allocations: 114.7 kB / 0.6049 GB, free: 7.113 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002155/0.9924, allocations: 67.97 kB / 0.605 GB, free: 7.047 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.9924, allocations: 8 kB / 0.605 GB, free: 7.039 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003999/0.9964, allocations: 1.832 MB / 0.6068 GB, free: 5.262 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.114e-05/0.9964, allocations: 12 kB / 0.6068 GB, free: 5.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001614/0.9981, allocations: 328.9 kB / 0.6071 GB, free: 4.926 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.9991, allocations: 269.6 kB / 0.6074 GB, free: 4.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/1.001, allocations: 0.923 MB / 0.6083 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/1.002, allocations: 111.8 kB / 0.6084 GB, free: 3.629 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/1.002, allocations: 67.97 kB / 0.6084 GB, free: 3.562 MB / 462.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0009908/1.003, allocations: 417.3 kB / 0.6088 GB, free: 3.164 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004044/1.004, allocations: 98.81 kB / 0.6089 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004561/1.008, allocations: 1.98 MB / 0.6109 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/1.008, allocations: 12 kB / 0.6109 GB, free: 1.047 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/1.008, allocations: 3.984 kB / 0.6109 GB, free: 1.043 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/1.008, allocations: 3.984 kB / 0.6109 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006077/1.014, allocations: 3.122 MB / 0.6139 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/1.014, allocations: 4 kB / 0.6139 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008835/1.015, allocations: 178.4 kB / 0.6141 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002068/1.017, allocations: 400.3 kB / 0.6145 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/1.018, allocations: 31.98 kB / 0.6145 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00153/1.019, allocations: 0.8982 MB / 0.6154 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.019, allocations: 7.984 kB / 0.6154 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004557/1.024, allocations: 2.404 MB / 0.6178 GB, free: 9.902 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008515/1.025, allocations: 335.7 kB / 0.6181 GB, free: 9.555 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002957/1.025, allocations: 24 kB / 0.6181 GB, free: 9.531 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/1.026, allocations: 87.83 kB / 0.6182 GB, free: 9.445 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/1.026, allocations: 77.11 kB / 0.6183 GB, free: 9.375 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000152/1.026, allocations: 51.97 kB / 0.6183 GB, free: 9.324 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009032/1.027, allocations: 0.5771 MB / 0.6189 GB, free: 8.754 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.027, allocations: 0 / 0.6189 GB, free: 8.754 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004144/1.032, allocations: 1.128 MB / 0.62 GB, free: 7.625 MB / 478.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004044/1.036, allocations: 1.048 MB / 0.621 GB, free: 6.66 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005649/1.041, allocations: 2.633 MB / 0.6236 GB, free: 4.059 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/1.041, allocations: 4.438 kB / 0.6236 GB, free: 4.055 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/1.043, allocations: 0.7367 MB / 0.6243 GB, free: 3.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/1.046, allocations: 0.5322 MB / 0.6248 GB, free: 2.816 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00623/1.053, allocations: 3.093 MB / 0.6278 GB, free: 15.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009/1.054, allocations: 1.116 MB / 0.6289 GB, free: 14.54 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005472/1.054, allocations: 123.4 kB / 0.629 GB, free: 14.41 MB / 494.1 MB Notification: Performance of SimCode: time 1.202e-06/1.054, allocations: 0 / 0.629 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Templates: time 0.05271/1.107, allocations: 32.17 MB / 0.6604 GB, free: 14.35 MB / 0.5137 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches