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.001161/0.001161, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.00115/0.00115, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.397/1.397, allocations: 222.9 MB / 241.8 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 45.89 kB / 300.6 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1189, allocations: 49.45 MB / 350 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.8316/0.9505, allocations: 204.5 MB / 0.5416 GB, free: 1.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01809/0.9687, allocations: 10.78 MB / 0.5521 GB, free: 1.223 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.9702, allocations: 29.75 kB / 0.5521 GB, free: 1.223 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.9716, allocations: 415.9 kB / 0.5525 GB, free: 1.223 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009466/0.9811, allocations: 2.826 MB / 0.5553 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008027/0.9892, allocations: 2.306 MB / 0.5576 GB, free: 1.02 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005298/0.9945, allocations: 3.777 MB / 0.5612 GB, free: 1.012 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.9958, allocations: 0.6688 MB / 0.5619 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007173/1.003, allocations: 2.504 MB / 0.5643 GB, free: 0.875 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002757/1.006, allocations: 1.087 MB / 0.5654 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002838/1.006, allocations: 61.53 kB / 0.5655 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01404/1.02, allocations: 6.447 MB / 0.5718 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001181/1.021, allocations: 493.3 kB / 0.5722 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001342/1.023, allocations: 0.5799 MB / 0.5728 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00771/1.03, allocations: 3.272 MB / 0.576 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/1.03, allocations: 0 / 0.576 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.474e-06/1.03, allocations: 0 / 0.576 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/1.03, allocations: 1.203 kB / 0.576 GB, free: 0.5781 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.005455/1.036, allocations: 2.056 MB / 0.578 GB, free: 15.5 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/1.036, allocations: 7.75 kB / 0.578 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005196/1.036, allocations: 131.5 kB / 0.5781 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/1.038, allocations: 0.6852 MB / 0.5788 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/1.038, allocations: 133.7 kB / 0.5789 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/1.038, allocations: 93.64 kB / 0.579 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/1.041, allocations: 1.448 MB / 0.5804 GB, free: 14.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/1.041, allocations: 6 kB / 0.5804 GB, free: 14.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/1.041, allocations: 44.05 kB / 0.5805 GB, free: 14.6 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-05/1.041, allocations: 75.11 kB / 0.5806 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002314/1.043, allocations: 1.463 MB / 0.582 GB, free: 14.34 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.008841/1.052, allocations: 6.324 MB / 0.5882 GB, free: 10.15 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/1.054, allocations: 0.9713 MB / 0.5891 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008903/1.055, allocations: 0.5206 MB / 0.5896 GB, free: 9.902 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001826/1.057, allocations: 1.807 MB / 0.5914 GB, free: 7.871 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.822e-05/1.057, allocations: 51.31 kB / 0.5914 GB, free: 7.824 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000741/1.058, allocations: 101.6 kB / 0.5915 GB, free: 7.77 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 4.388e-06/1.058, allocations: 0 / 0.5915 GB, free: 7.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.0172/1.075, allocations: 4.781 MB / 0.5962 GB, free: 6.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/1.075, allocations: 121.1 kB / 0.5963 GB, free: 6.281 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/1.076, allocations: 0.7729 MB / 0.5971 GB, free: 6.023 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/1.076, allocations: 49.89 kB / 0.5971 GB, free: 5.992 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003973/1.077, allocations: 449.1 kB / 0.5975 GB, free: 5.691 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/1.077, allocations: 336.1 kB / 0.5979 GB, free: 5.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004778/1.078, allocations: 261.2 kB / 0.5981 GB, free: 5.238 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/1.078, allocations: 402.5 kB / 0.5985 GB, free: 4.875 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/1.079, allocations: 0.6178 MB / 0.5991 GB, free: 4.461 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/1.081, allocations: 0.9603 MB / 0.6 GB, free: 3.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/1.084, allocations: 1.658 MB / 0.6017 GB, free: 2.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.335e-05/1.084, allocations: 4 kB / 0.6017 GB, free: 2.316 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004289/1.088, allocations: 1.93 MB / 0.6035 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.779e-05/1.088, allocations: 67.47 kB / 0.6036 GB, free: 0.793 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/1.088, allocations: 12 kB / 0.6036 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001552/1.09, allocations: 312.5 kB / 0.6039 GB, free: 484 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/1.091, allocations: 273.6 kB / 0.6042 GB, free: 232 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/1.092, allocations: 0.9043 MB / 0.6051 GB, free: 15.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/1.094, allocations: 107.8 kB / 0.6052 GB, free: 15.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/1.094, allocations: 71.97 kB / 0.6052 GB, free: 15.13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001736/1.096, allocations: 0.8421 MB / 0.6061 GB, free: 14.29 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00159/1.097, allocations: 0.951 MB / 0.607 GB, free: 13.19 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002895/1.1, allocations: 1.638 MB / 0.6086 GB, free: 11.44 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.119e-05/1.1, allocations: 0 / 0.6086 GB, free: 11.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004246/1.105, allocations: 1.913 MB / 0.6104 GB, free: 9.566 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.075e-05/1.105, allocations: 66.38 kB / 0.6105 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/1.105, allocations: 8 kB / 0.6105 GB, free: 9.484 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/1.106, allocations: 309.8 kB / 0.6108 GB, free: 9.18 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/1.107, allocations: 269.4 kB / 0.6111 GB, free: 8.934 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001663/1.109, allocations: 0.9086 MB / 0.612 GB, free: 8.008 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/1.11, allocations: 115.8 kB / 0.6121 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001879/1.111, allocations: 67.97 kB / 0.6121 GB, free: 7.828 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.000549/1.111, allocations: 257.8 kB / 0.6124 GB, free: 7.586 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004427/1.112, allocations: 98.88 kB / 0.6125 GB, free: 7.488 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00423/1.116, allocations: 1.959 MB / 0.6144 GB, free: 5.508 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/1.116, allocations: 15.98 kB / 0.6144 GB, free: 5.492 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/1.116, allocations: 3.938 kB / 0.6144 GB, free: 5.488 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/1.116, allocations: 3.984 kB / 0.6144 GB, free: 5.484 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00601/1.122, allocations: 3.118 MB / 0.6175 GB, free: 2.312 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/1.122, allocations: 4 kB / 0.6175 GB, free: 2.309 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008897/1.123, allocations: 179.7 kB / 0.6176 GB, free: 2.145 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/1.125, allocations: 380.3 kB / 0.618 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/1.125, allocations: 35.98 kB / 0.618 GB, free: 1.734 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/1.126, allocations: 0.8845 MB / 0.6189 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-05/1.126, allocations: 0 / 0.6189 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004777/1.131, allocations: 2.376 MB / 0.6212 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008641/1.132, allocations: 323.7 kB / 0.6215 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000364/1.132, allocations: 27.91 kB / 0.6215 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/1.134, allocations: 83.86 kB / 0.6216 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/1.134, allocations: 78.2 kB / 0.6217 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001707/1.134, allocations: 51.97 kB / 0.6217 GB, free: 13.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001008/1.135, allocations: 0.5654 MB / 0.6223 GB, free: 13.29 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.135, allocations: 2.906 kB / 0.6223 GB, free: 13.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005289/1.14, allocations: 1.12 MB / 0.6234 GB, free: 12.17 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.004557/1.145, allocations: 1.056 MB / 0.6244 GB, free: 11.19 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005831/1.151, allocations: 2.622 MB / 0.627 GB, free: 8.598 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.151, allocations: 448 / 0.627 GB, free: 8.598 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001648/1.152, allocations: 0.7432 MB / 0.6277 GB, free: 7.887 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00334/1.156, allocations: 0.5408 MB / 0.6282 GB, free: 7.359 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006558/1.162, allocations: 2.957 MB / 0.6311 GB, free: 4.367 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009011/1.163, allocations: 1.12 MB / 0.6322 GB, free: 3.215 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006529/1.164, allocations: 127.4 kB / 0.6323 GB, free: 3.09 MB / 494.1 MB Notification: Performance of SimCode: time 2.014e-06/1.164, allocations: 0 / 0.6323 GB, free: 3.09 MB / 494.1 MB Notification: Performance of Templates: time 0.05408/1.218, allocations: 32.3 MB / 0.6639 GB, free: 2.898 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