Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009754/0.0009756, allocations: 183.9 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 225.7 MB / 243.2 MB, free: 10.22 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008364/0.0008366, allocations: 99.58 kB / 294.4 MB, free: 9.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002821/0.0002823, allocations: 11.98 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.24, allocations: 50.42 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4551/0.6952, allocations: 216.7 MB / 0.6067 GB, free: 10.87 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01809/0.7133, allocations: 15.26 MB / 0.6216 GB, free: 15.84 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.7146, allocations: 27.75 kB / 0.6216 GB, free: 15.82 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.716, allocations: 411.2 kB / 0.622 GB, free: 15.48 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009808/0.7258, allocations: 2.83 MB / 0.6248 GB, free: 13.08 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006681/0.7325, allocations: 2.302 MB / 0.627 GB, free: 11.36 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.004038/0.7366, allocations: 3.779 MB / 0.6307 GB, free: 8.277 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.738, allocations: 0.6564 MB / 0.6313 GB, free: 7.609 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007409/0.7455, allocations: 2.554 MB / 0.6338 GB, free: 5.047 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002275/0.7478, allocations: 1.071 MB / 0.6349 GB, free: 3.973 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000417/0.7482, allocations: 64 kB / 0.6349 GB, free: 3.91 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01242/0.7606, allocations: 6.317 MB / 0.6411 GB, free: 13.58 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.7617, allocations: 482.7 kB / 0.6416 GB, free: 13.11 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00151/0.7633, allocations: 0.6045 MB / 0.6422 GB, free: 12.49 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01201/0.7753, allocations: 4.684 MB / 0.6467 GB, free: 7.797 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.7753, allocations: 0 / 0.6467 GB, free: 7.797 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.7753, allocations: 0 / 0.6467 GB, free: 7.797 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.491e-05/0.7754, allocations: 0 / 0.6467 GB, free: 7.797 MB / 458.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.005016/0.7804, allocations: 1.823 MB / 0.6485 GB, free: 5.906 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.7805, allocations: 12.03 kB / 0.6485 GB, free: 5.895 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006027/0.7811, allocations: 130.7 kB / 0.6486 GB, free: 5.766 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.7824, allocations: 0.6736 MB / 0.6493 GB, free: 5.051 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.7826, allocations: 133.3 kB / 0.6494 GB, free: 4.906 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002268/0.7828, allocations: 95.83 kB / 0.6495 GB, free: 4.812 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002483/0.7853, allocations: 1.453 MB / 0.6509 GB, free: 3.297 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.7854, allocations: 4 kB / 0.6509 GB, free: 3.293 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.7855, allocations: 43.92 kB / 0.651 GB, free: 3.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.838e-05/0.7856, allocations: 69.97 kB / 0.6511 GB, free: 3.18 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002304/0.7879, allocations: 1.46 MB / 0.6525 GB, free: 1.723 MB / 458.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.008906/0.7968, allocations: 6.334 MB / 0.6587 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.7986, allocations: 0.994 MB / 0.6596 GB, free: 9.965 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000746/0.7994, allocations: 0.519 MB / 0.6601 GB, free: 9.445 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001248/0.8006, allocations: 1.797 MB / 0.6619 GB, free: 7.258 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/0.8007, allocations: 55.5 kB / 0.662 GB, free: 7.195 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004166/0.8011, allocations: 103 kB / 0.6621 GB, free: 7.094 MB / 474.7 MB Notification: Performance of pre-optimization done (n=84): time 3.516e-06/0.8011, allocations: 0 / 0.6621 GB, free: 7.094 MB / 474.7 MB Notification: Performance of matching and sorting (n=96): time 0.01604/0.8172, allocations: 4.943 MB / 0.6669 GB, free: 2.098 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/0.8173, allocations: 111.8 kB / 0.667 GB, free: 1.961 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.8184, allocations: 0.7699 MB / 0.6677 GB, free: 1.184 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001501/0.8185, allocations: 49.7 kB / 0.6678 GB, free: 1.129 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/0.8189, allocations: 455.1 kB / 0.6682 GB, free: 0.6758 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/0.8192, allocations: 339.2 kB / 0.6685 GB, free: 348 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.983e-05/0.8193, allocations: 27.94 kB / 0.6686 GB, free: 320 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.8195, allocations: 398.7 kB / 0.6689 GB, free: 15.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.8207, allocations: 0.6155 MB / 0.6695 GB, free: 15.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.8222, allocations: 0.9576 MB / 0.6705 GB, free: 14.19 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002639/0.8248, allocations: 1.662 MB / 0.6721 GB, free: 12.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.8248, allocations: 4 kB / 0.6721 GB, free: 12.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00379/0.8286, allocations: 1.922 MB / 0.674 GB, free: 10.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000327/0.829, allocations: 455.3 kB / 0.6744 GB, free: 9.828 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.829, allocations: 12 kB / 0.6744 GB, free: 9.816 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.8306, allocations: 328.5 kB / 0.6747 GB, free: 9.492 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.8316, allocations: 271.5 kB / 0.675 GB, free: 9.227 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.8333, allocations: 0.9232 MB / 0.6759 GB, free: 8.277 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.8344, allocations: 111.8 kB / 0.676 GB, free: 8.168 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001824/0.8346, allocations: 71.97 kB / 0.6761 GB, free: 8.098 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.8347, allocations: 4 kB / 0.6761 GB, free: 8.094 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00346/0.8381, allocations: 1.8 MB / 0.6778 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/0.8382, allocations: 8 kB / 0.6779 GB, free: 6.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001443/0.8396, allocations: 321.2 kB / 0.6782 GB, free: 5.953 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.8407, allocations: 279.5 kB / 0.6784 GB, free: 5.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.8422, allocations: 0.9309 MB / 0.6793 GB, free: 4.723 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.8433, allocations: 99.94 kB / 0.6794 GB, free: 4.625 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.8434, allocations: 79.84 kB / 0.6795 GB, free: 4.547 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.0006791/0.8441, allocations: 420.6 kB / 0.6799 GB, free: 4.125 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002574/0.8444, allocations: 94.88 kB / 0.68 GB, free: 4.031 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004141/0.8486, allocations: 1.979 MB / 0.6819 GB, free: 2.023 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-05/0.8486, allocations: 16 kB / 0.6819 GB, free: 2.008 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.8486, allocations: 0 / 0.6819 GB, free: 2.008 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.8486, allocations: 7.922 kB / 0.682 GB, free: 2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2214/1.07, allocations: 3.101 MB / 0.685 GB, free: 208.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/1.07, allocations: 2.406 kB / 0.685 GB, free: 208.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008476/1.071, allocations: 186.7 kB / 0.6852 GB, free: 208.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/1.073, allocations: 399.2 kB / 0.6855 GB, free: 208.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.416e-05/1.073, allocations: 36 kB / 0.6856 GB, free: 208.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/1.074, allocations: 0.8942 MB / 0.6864 GB, free: 208.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.074, allocations: 2.688 kB / 0.6865 GB, free: 208.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004438/1.079, allocations: 2.394 MB / 0.6888 GB, free: 207.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006455/1.079, allocations: 342.8 kB / 0.6891 GB, free: 207.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/1.08, allocations: 27.56 kB / 0.6891 GB, free: 207.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008891/1.08, allocations: 87.62 kB / 0.6892 GB, free: 207 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/1.081, allocations: 73.38 kB / 0.6893 GB, free: 207 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/1.081, allocations: 46.95 kB / 0.6893 GB, free: 207 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006242/1.081, allocations: 0.5663 MB / 0.6899 GB, free: 206.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.081, allocations: 2.156 kB / 0.6899 GB, free: 206.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002963/1.084, allocations: 1.126 MB / 0.691 GB, free: 206.7 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.002468/1.087, allocations: 1.056 MB / 0.692 GB, free: 206.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00418/1.091, allocations: 2.619 MB / 0.6946 GB, free: 205.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.091, allocations: 4.406 kB / 0.6946 GB, free: 205.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/1.092, allocations: 0.7454 MB / 0.6953 GB, free: 205.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/1.095, allocations: 0.5387 MB / 0.6958 GB, free: 205.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004568/1.099, allocations: 3.017 MB / 0.6988 GB, free: 203.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/1.1, allocations: 1.115 MB / 0.6999 GB, free: 202.8 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001926/1.102, allocations: 0.7079 MB / 0.7006 GB, free: 202.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/1.102, allocations: 114 kB / 0.7007 GB, free: 202.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/1.102, allocations: 0 / 0.7007 GB, free: 202.4 MB / 490.7 MB Notification: Performance of Templates: time 0.0467/1.149, allocations: 38.78 MB / 0.7385 GB, free: 163.9 MB / 490.7 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