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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.3 MB / 235.5 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008273/0.0008273, allocations: 96.69 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.169e-05/2.178e-05, allocations: 3.984 kB / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09604/0.09608, allocations: 50.41 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.241/9.337, allocations: 3.552 GB / 3.937 GB, free: 143.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004432/9.337, allocations: 88.22 kB / 3.938 GB, free: 143.8 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.409/11.75, allocations: 0.535 GB / 4.472 GB, free: 38.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.084e-06/11.75, allocations: 0 / 4.472 GB, free: 38.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.466e-05/11.75, allocations: 27.53 kB / 4.472 GB, free: 38.36 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.01394/11.76, allocations: 2.863 MB / 4.475 GB, free: 36.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.865e-05/11.76, allocations: 7.312 kB / 4.475 GB, free: 36.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/11.76, allocations: 137.5 kB / 4.475 GB, free: 36.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/11.76, allocations: 0.7198 MB / 4.476 GB, free: 36.56 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/11.76, allocations: 133 kB / 4.476 GB, free: 36.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/11.76, allocations: 88.06 kB / 4.476 GB, free: 36.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003087/11.77, allocations: 1.427 MB / 4.478 GB, free: 36.26 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.109e-05/11.77, allocations: 9 kB / 4.478 GB, free: 36.26 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/11.77, allocations: 38.48 kB / 4.478 GB, free: 36.26 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001154/11.77, allocations: 69.55 kB / 4.478 GB, free: 36.26 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002177/11.77, allocations: 1.408 MB / 4.479 GB, free: 36.25 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.008405/11.78, allocations: 6.051 MB / 4.485 GB, free: 33.26 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/11.78, allocations: 0.953 MB / 4.486 GB, free: 33.23 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007046/11.78, allocations: 0.5074 MB / 4.487 GB, free: 33.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001345/11.78, allocations: 1.802 MB / 4.488 GB, free: 31.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/11.78, allocations: 54.2 kB / 4.488 GB, free: 31.21 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006603/11.78, allocations: 108.4 kB / 4.488 GB, free: 31.16 MB / 458.7 MB Notification: Performance of pre-optimization done (n=84): time 4.799e-06/11.78, allocations: 0 / 4.488 GB, free: 31.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.01449/11.8, allocations: 4.387 MB / 4.493 GB, free: 30.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/11.8, allocations: 113.7 kB / 4.493 GB, free: 30.56 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/11.8, allocations: 0.6797 MB / 4.494 GB, free: 30.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001214/11.8, allocations: 47.67 kB / 4.494 GB, free: 30.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/11.8, allocations: 451.6 kB / 4.494 GB, free: 30.16 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002817/11.8, allocations: 347.2 kB / 4.494 GB, free: 29.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/11.8, allocations: 27.28 kB / 4.494 GB, free: 29.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/11.8, allocations: 403.9 kB / 4.495 GB, free: 29.63 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008532/11.8, allocations: 0.5463 MB / 4.495 GB, free: 29.62 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/11.8, allocations: 0.8985 MB / 4.496 GB, free: 29.24 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/11.8, allocations: 0.7354 MB / 4.497 GB, free: 29.17 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.503e-06/11.8, allocations: 3.312 kB / 4.497 GB, free: 29.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002979/11.81, allocations: 1.771 MB / 4.499 GB, free: 28.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0012/11.81, allocations: 3.97 MB / 4.502 GB, free: 24.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-05/11.81, allocations: 17.61 kB / 4.503 GB, free: 24.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/11.81, allocations: 245.8 kB / 4.503 GB, free: 24.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/11.81, allocations: 271.2 kB / 4.503 GB, free: 24.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009523/11.81, allocations: 0.8138 MB / 4.504 GB, free: 24.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/11.81, allocations: 117.8 kB / 4.504 GB, free: 24.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/11.81, allocations: 68.25 kB / 4.504 GB, free: 24.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/11.81, allocations: 3.5 kB / 4.504 GB, free: 24.32 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002915/11.81, allocations: 1.657 MB / 4.506 GB, free: 24.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/11.82, allocations: 10.66 kB / 4.506 GB, free: 24.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009141/11.82, allocations: 240.5 kB / 4.506 GB, free: 24.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/11.82, allocations: 272.3 kB / 4.506 GB, free: 24.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000793/11.82, allocations: 0.8191 MB / 4.507 GB, free: 23.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/11.82, allocations: 109 kB / 4.507 GB, free: 23.65 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/11.82, allocations: 71.64 kB / 4.507 GB, free: 23.65 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004901/11.82, allocations: 182.9 kB / 4.507 GB, free: 23.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002362/11.82, allocations: 102.2 kB / 4.507 GB, free: 23.47 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00332/11.82, allocations: 1.833 MB / 4.509 GB, free: 23.31 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/11.82, allocations: 10.97 kB / 4.509 GB, free: 23.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/11.82, allocations: 5.828 kB / 4.509 GB, free: 23.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/11.82, allocations: 5.062 kB / 4.509 GB, free: 23.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00453/11.83, allocations: 2.976 MB / 4.512 GB, free: 22.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/11.83, allocations: 3.562 kB / 4.512 GB, free: 22.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008047/11.83, allocations: 174.8 kB / 4.512 GB, free: 22.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/11.83, allocations: 317.6 kB / 4.513 GB, free: 22.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.088e-05/11.83, allocations: 42.81 kB / 4.513 GB, free: 22.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007604/11.83, allocations: 0.7841 MB / 4.513 GB, free: 22.25 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/11.83, allocations: 1.906 kB / 4.513 GB, free: 22.25 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003101/11.83, allocations: 2.276 MB / 4.516 GB, free: 21.84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007008/11.83, allocations: 340.8 kB / 4.516 GB, free: 21.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/11.83, allocations: 24.81 kB / 4.516 GB, free: 21.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009482/11.84, allocations: 83.8 kB / 4.516 GB, free: 21.69 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/11.84, allocations: 82.62 kB / 4.516 GB, free: 21.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/11.84, allocations: 56.56 kB / 4.516 GB, free: 21.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009007/11.84, allocations: 0.5374 MB / 4.517 GB, free: 21.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/11.84, allocations: 0 / 4.517 GB, free: 21.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00689/11.84, allocations: 1.294 MB / 4.518 GB, free: 21.37 MB / 458.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005761/11.85, allocations: 1.884 MB / 4.52 GB, free: 20.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004151/11.85, allocations: 2.491 MB / 4.522 GB, free: 20.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/11.85, allocations: 448 / 4.522 GB, free: 20.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/11.86, allocations: 0.6844 MB / 4.523 GB, free: 20.53 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/11.86, allocations: 499.8 kB / 4.523 GB, free: 20.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004315/11.86, allocations: 2.022 MB / 4.525 GB, free: 19.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/11.86, allocations: 1.14 MB / 4.526 GB, free: 18.96 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002177/11.86, allocations: 0.7437 MB / 4.527 GB, free: 18.92 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003146/11.87, allocations: 105.5 kB / 4.527 GB, free: 18.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.233e-06/11.87, allocations: 0 / 4.527 GB, free: 18.91 MB / 458.7 MB Notification: Performance of Templates: time 0.0723/11.94, allocations: 51.67 MB / 4.578 GB, free: 6.938 MB / 474.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