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.001159/0.001159, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.001098/0.001098, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.347/1.347, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 39.56 kB / 300.8 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.122, allocations: 49.45 MB / 350.2 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.7781/0.9002, allocations: 203.2 MB / 0.5404 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0139/0.9141, allocations: 10.44 MB / 0.5506 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/0.9157, allocations: 31.09 kB / 0.5506 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.9173, allocations: 418.5 kB / 0.551 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009197/0.9265, allocations: 2.944 MB / 0.5539 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008143/0.9346, allocations: 2.477 MB / 0.5563 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004236/0.9389, allocations: 2.64 MB / 0.5589 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.9404, allocations: 0.7599 MB / 0.5597 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00707/0.9475, allocations: 2.715 MB / 0.5623 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00235/0.9499, allocations: 1.135 MB / 0.5634 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003399/0.9502, allocations: 119.6 kB / 0.5635 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0126/0.9628, allocations: 6.286 MB / 0.5697 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001185/0.9641, allocations: 0.5356 MB / 0.5702 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001481/0.9656, allocations: 0.643 MB / 0.5708 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008648/0.9742, allocations: 3.282 MB / 0.574 GB, free: 0.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.9743, allocations: 0 / 0.574 GB, free: 0.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.9743, allocations: 0.8125 kB / 0.574 GB, free: 0.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.29e-05/0.9743, allocations: 0 / 0.574 GB, free: 0.5 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.007202/0.9815, allocations: 2.047 MB / 0.576 GB, free: 15.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.9816, allocations: 15.7 kB / 0.576 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006078/0.9822, allocations: 132 kB / 0.5762 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.9835, allocations: 0.6827 MB / 0.5768 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.9837, allocations: 132.6 kB / 0.577 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.9838, allocations: 86.98 kB / 0.577 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002546/0.9864, allocations: 1.453 MB / 0.5785 GB, free: 14.81 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.9864, allocations: 4.156 kB / 0.5785 GB, free: 14.81 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.9866, allocations: 48.27 kB / 0.5785 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/0.9867, allocations: 72.08 kB / 0.5786 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003001/0.9897, allocations: 1.465 MB / 0.58 GB, free: 14.8 MB / 462.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.008893/0.9986, allocations: 6.322 MB / 0.5862 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/1, allocations: 0.9698 MB / 0.5871 GB, free: 11.22 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007007/1.001, allocations: 0.5172 MB / 0.5876 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001537/1.003, allocations: 1.805 MB / 0.5894 GB, free: 9.121 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/1.003, allocations: 53.47 kB / 0.5895 GB, free: 9.078 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006055/1.003, allocations: 100.6 kB / 0.5895 GB, free: 9.023 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 2.836e-06/1.003, allocations: 0.8438 kB / 0.5896 GB, free: 9.023 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01735/1.021, allocations: 4.782 MB / 0.5942 GB, free: 7.73 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/1.021, allocations: 122.8 kB / 0.5943 GB, free: 7.602 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/1.022, allocations: 0.7723 MB / 0.5951 GB, free: 7.344 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002421/1.022, allocations: 52.7 kB / 0.5951 GB, free: 7.309 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/1.023, allocations: 452.9 kB / 0.5956 GB, free: 7.039 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000382/1.023, allocations: 342.2 kB / 0.5959 GB, free: 6.797 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005264/1.024, allocations: 254.9 kB / 0.5961 GB, free: 6.742 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000207/1.024, allocations: 400.5 kB / 0.5965 GB, free: 6.402 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/1.025, allocations: 0.6152 MB / 0.5971 GB, free: 6.293 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/1.027, allocations: 0.9597 MB / 0.5981 GB, free: 5.672 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00298/1.03, allocations: 1.66 MB / 0.5997 GB, free: 4.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/1.03, allocations: 4 kB / 0.5997 GB, free: 4.426 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004245/1.034, allocations: 1.921 MB / 0.6016 GB, free: 2.879 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.373e-05/1.034, allocations: 64 kB / 0.6016 GB, free: 2.805 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.837e-05/1.034, allocations: 16 kB / 0.6016 GB, free: 2.789 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001577/1.036, allocations: 313.7 kB / 0.6019 GB, free: 2.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/1.037, allocations: 270.3 kB / 0.6022 GB, free: 2.234 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/1.039, allocations: 0.9042 MB / 0.6031 GB, free: 1.312 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/1.04, allocations: 107.8 kB / 0.6032 GB, free: 1.207 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/1.04, allocations: 71.97 kB / 0.6033 GB, free: 1.137 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001813/1.042, allocations: 0.8421 MB / 0.6041 GB, free: 300 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001579/1.044, allocations: 0.9438 MB / 0.605 GB, free: 15.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002874/1.047, allocations: 1.634 MB / 0.6066 GB, free: 13.46 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.648e-06/1.047, allocations: 4 kB / 0.6066 GB, free: 13.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004272/1.051, allocations: 1.911 MB / 0.6085 GB, free: 11.59 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.656e-05/1.051, allocations: 71.39 kB / 0.6085 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/1.051, allocations: 8.875 kB / 0.6085 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001518/1.053, allocations: 308.9 kB / 0.6088 GB, free: 11.19 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/1.054, allocations: 280.3 kB / 0.6091 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/1.055, allocations: 0.9038 MB / 0.61 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/1.057, allocations: 107.8 kB / 0.6101 GB, free: 9.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/1.057, allocations: 63.98 kB / 0.6101 GB, free: 9.848 MB / 478.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.0005239/1.058, allocations: 272.4 kB / 0.6104 GB, free: 9.598 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004051/1.058, allocations: 94.88 kB / 0.6105 GB, free: 9.504 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004305/1.062, allocations: 1.968 MB / 0.6124 GB, free: 7.512 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/1.062, allocations: 12 kB / 0.6124 GB, free: 7.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/1.062, allocations: 3.938 kB / 0.6124 GB, free: 7.496 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/1.062, allocations: 7.969 kB / 0.6124 GB, free: 7.488 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00612/1.068, allocations: 3.106 MB / 0.6155 GB, free: 4.328 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/1.069, allocations: 4 kB / 0.6155 GB, free: 4.324 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008856/1.069, allocations: 176.7 kB / 0.6156 GB, free: 4.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/1.071, allocations: 375.5 kB / 0.616 GB, free: 3.793 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/1.071, allocations: 39.97 kB / 0.616 GB, free: 3.754 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001547/1.073, allocations: 0.8806 MB / 0.6169 GB, free: 2.852 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.073, allocations: 0 / 0.6169 GB, free: 2.852 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004733/1.078, allocations: 2.375 MB / 0.6192 GB, free: 452 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008054/1.079, allocations: 331.6 kB / 0.6195 GB, free: 100 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003446/1.079, allocations: 24 kB / 0.6196 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/1.08, allocations: 79.97 kB / 0.6196 GB, free: 15.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/1.08, allocations: 71.86 kB / 0.6197 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/1.081, allocations: 55.95 kB / 0.6198 GB, free: 15.88 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009501/1.082, allocations: 0.5654 MB / 0.6203 GB, free: 15.32 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.082, allocations: 4 kB / 0.6203 GB, free: 15.31 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004594/1.086, allocations: 1.132 MB / 0.6214 GB, free: 14.18 MB / 494.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.004024/1.09, allocations: 1.049 MB / 0.6224 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006768/1.097, allocations: 2.938 MB / 0.6253 GB, free: 10.31 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/1.097, allocations: 9.219 kB / 0.6253 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/1.099, allocations: 0.7374 MB / 0.626 GB, free: 9.594 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003123/1.102, allocations: 0.562 MB / 0.6266 GB, free: 9.047 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006033/1.108, allocations: 2.965 MB / 0.6295 GB, free: 6.055 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008397/1.109, allocations: 1.119 MB / 0.6306 GB, free: 4.902 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005848/1.109, allocations: 127.4 kB / 0.6307 GB, free: 4.777 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/1.109, allocations: 2.906 kB / 0.6307 GB, free: 4.777 MB / 494.1 MB Notification: Performance of Templates: time 0.04994/1.159, allocations: 32.28 MB / 0.6622 GB, free: 4.602 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