Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 201.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 229.5 MB / 247.7 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007805/0.0007805, allocations: 91.77 kB / 299.8 MB, free: 5.387 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002125/0.0002126, allocations: 8 kB / 360.6 MB, free: 8.523 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2024, allocations: 51.42 MB / 412.1 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.383/0.5854, allocations: 217.3 MB / 0.6146 GB, free: 7.555 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.6011, allocations: 15.33 MB / 0.6295 GB, free: 8.629 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.6022, allocations: 23.81 kB / 0.6296 GB, free: 8.605 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.6036, allocations: 413.9 kB / 0.63 GB, free: 8.199 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008048/0.6116, allocations: 2.817 MB / 0.6327 GB, free: 5.371 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006226/0.6179, allocations: 2.295 MB / 0.635 GB, free: 3.07 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003969/0.6219, allocations: 3.788 MB / 0.6387 GB, free: 15.27 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.6231, allocations: 0.6647 MB / 0.6393 GB, free: 14.59 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006181/0.6293, allocations: 2.566 MB / 0.6418 GB, free: 12.02 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001898/0.6312, allocations: 1.079 MB / 0.6429 GB, free: 10.93 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003434/0.6316, allocations: 60 kB / 0.6429 GB, free: 10.88 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01093/0.6425, allocations: 6.352 MB / 0.6491 GB, free: 4.512 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000966/0.6435, allocations: 490.7 kB / 0.6496 GB, free: 4.031 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.6449, allocations: 0.5929 MB / 0.6502 GB, free: 3.43 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.6552, allocations: 4.723 MB / 0.6548 GB, free: 14.7 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.6553, allocations: 3.938 kB / 0.6548 GB, free: 14.69 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6553, allocations: 3.938 kB / 0.6548 GB, free: 14.69 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.413e-05/0.6554, allocations: 4 kB / 0.6548 GB, free: 14.68 MB / 474.7 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.004643/0.66, allocations: 1.835 MB / 0.6566 GB, free: 12.78 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.6601, allocations: 8.031 kB / 0.6566 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005984/0.6607, allocations: 130.7 kB / 0.6567 GB, free: 12.64 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001354/0.662, allocations: 0.6774 MB / 0.6574 GB, free: 11.93 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.6622, allocations: 129.4 kB / 0.6575 GB, free: 11.79 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002304/0.6624, allocations: 99.77 kB / 0.6576 GB, free: 11.69 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.6649, allocations: 1.448 MB / 0.659 GB, free: 10.18 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.6649, allocations: 4 kB / 0.659 GB, free: 10.17 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.665, allocations: 35.98 kB / 0.659 GB, free: 10.14 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.538e-05/0.6651, allocations: 69.97 kB / 0.6591 GB, free: 10.07 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/0.6675, allocations: 1.46 MB / 0.6605 GB, free: 8.609 MB / 474.7 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.008623/0.6761, allocations: 6.325 MB / 0.6667 GB, free: 1.855 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001821/0.678, allocations: 0.9891 MB / 0.6677 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007752/0.6788, allocations: 0.5269 MB / 0.6682 GB, free: 336 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001351/0.6801, allocations: 1.801 MB / 0.67 GB, free: 14.14 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.6802, allocations: 47.56 kB / 0.67 GB, free: 14.08 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004464/0.6806, allocations: 103 kB / 0.6701 GB, free: 13.98 MB / 490.7 MB Notification: Performance of pre-optimization done (n=84): time 5.12e-06/0.6806, allocations: 0 / 0.6701 GB, free: 13.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01572/0.6964, allocations: 4.935 MB / 0.6749 GB, free: 8.996 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.6965, allocations: 115.8 kB / 0.675 GB, free: 8.855 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009754/0.6974, allocations: 0.7699 MB / 0.6758 GB, free: 8.078 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.6976, allocations: 45.7 kB / 0.6758 GB, free: 8.027 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003063/0.6979, allocations: 463.1 kB / 0.6763 GB, free: 7.566 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002632/0.6981, allocations: 335.2 kB / 0.6766 GB, free: 7.234 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.098e-05/0.6982, allocations: 28 kB / 0.6766 GB, free: 7.207 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.6984, allocations: 398.7 kB / 0.677 GB, free: 6.809 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.6996, allocations: 0.6154 MB / 0.6776 GB, free: 6.195 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.7009, allocations: 0.9615 MB / 0.6785 GB, free: 5.086 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0026/0.7036, allocations: 1.654 MB / 0.6801 GB, free: 3.281 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.7036, allocations: 4 kB / 0.6802 GB, free: 3.277 MB / 490.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00361/0.7072, allocations: 1.929 MB / 0.682 GB, free: 1.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003091/0.7075, allocations: 459.5 kB / 0.6825 GB, free: 0.7188 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/0.7076, allocations: 12 kB / 0.6825 GB, free: 0.707 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/0.7091, allocations: 328.5 kB / 0.6828 GB, free: 392 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.7102, allocations: 271.5 kB / 0.6831 GB, free: 120 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1714/0.8816, allocations: 0.9174 MB / 0.684 GB, free: 203.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.8831, allocations: 107.5 kB / 0.6841 GB, free: 203.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.8833, allocations: 73.83 kB / 0.6841 GB, free: 203.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.8833, allocations: 5.031 kB / 0.6841 GB, free: 203.7 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003642/0.8869, allocations: 1.805 MB / 0.6859 GB, free: 203.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.887, allocations: 13.67 kB / 0.6859 GB, free: 203.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.8885, allocations: 323.7 kB / 0.6862 GB, free: 203.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.8896, allocations: 263.9 kB / 0.6865 GB, free: 203.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.8911, allocations: 0.9351 MB / 0.6874 GB, free: 202.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.8922, allocations: 99.06 kB / 0.6875 GB, free: 202.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/0.8924, allocations: 68.67 kB / 0.6875 GB, free: 202.6 MB / 490.7 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.0008567/0.8933, allocations: 428.4 kB / 0.688 GB, free: 202.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/0.8936, allocations: 99.78 kB / 0.688 GB, free: 202.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004017/0.8976, allocations: 1.971 MB / 0.69 GB, free: 201.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.8976, allocations: 14.62 kB / 0.69 GB, free: 201.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.8976, allocations: 0 / 0.69 GB, free: 201.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.8977, allocations: 3.656 kB / 0.69 GB, free: 201.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00419/0.9019, allocations: 3.122 MB / 0.693 GB, free: 200.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.9019, allocations: 0 / 0.693 GB, free: 200.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007449/0.9026, allocations: 183.3 kB / 0.6932 GB, free: 200.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/0.9045, allocations: 399 kB / 0.6936 GB, free: 200.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.204e-05/0.9046, allocations: 38.77 kB / 0.6936 GB, free: 200.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.9057, allocations: 0.8846 MB / 0.6945 GB, free: 199.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.9057, allocations: 11.81 kB / 0.6945 GB, free: 199.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.9092, allocations: 2.391 MB / 0.6968 GB, free: 198.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005112/0.9097, allocations: 339.6 kB / 0.6972 GB, free: 198.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.9099, allocations: 27.86 kB / 0.6972 GB, free: 198.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008766/0.9108, allocations: 90.59 kB / 0.6973 GB, free: 198.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.9109, allocations: 74.86 kB / 0.6973 GB, free: 198.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.9111, allocations: 52.77 kB / 0.6974 GB, free: 198.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005705/0.9116, allocations: 0.5631 MB / 0.6979 GB, free: 197.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9116, allocations: 0 / 0.6979 GB, free: 197.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002555/0.9142, allocations: 1.15 MB / 0.6991 GB, free: 197.6 MB / 490.7 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.002197/0.9164, allocations: 1.085 MB / 0.7001 GB, free: 197.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004126/0.9205, allocations: 2.623 MB / 0.7027 GB, free: 195.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.9206, allocations: 448 / 0.7027 GB, free: 195.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.9217, allocations: 0.7411 MB / 0.7034 GB, free: 194.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002457/0.9242, allocations: 0.5375 MB / 0.7039 GB, free: 193.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004257/0.9285, allocations: 3.011 MB / 0.7069 GB, free: 190.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.929, allocations: 1.127 MB / 0.708 GB, free: 189.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001987/0.931, allocations: 0.7053 MB / 0.7087 GB, free: 189 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003067/0.9313, allocations: 107.4 kB / 0.7088 GB, free: 188.9 MB / 490.7 MB Notification: Performance of SimCode: time 7.41e-07/0.9313, allocations: 4 kB / 0.7088 GB, free: 188.9 MB / 490.7 MB Notification: Performance of Templates: time 0.0443/0.9756, allocations: 38.9 MB / 0.7468 GB, free: 150.3 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches