Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001569, allocations: 176.6 kB / 8.476 MB, free: 1.867 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205.2 MB / 214.1 MB, free: 5.172 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009175/0.0009175, allocations: 90.77 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.152e-06/6.172e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06919/0.06921, allocations: 47.58 MB / 362.5 MB, free: 9.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.351/6.42, allocations: 3.632 GB / 3.986 GB, free: 143.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/6.42, allocations: 84.7 kB / 3.986 GB, free: 143.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.046/10.47, allocations: 0.9017 GB / 4.888 GB, free: 27.55 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003399/10.47, allocations: 80.67 kB / 4.888 GB, free: 27.54 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: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.03342/10.5, allocations: 5.985 MB / 4.894 GB, free: 24.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.816e-05/10.5, allocations: 6.438 kB / 4.894 GB, free: 24.68 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004712/10.51, allocations: 422.6 kB / 4.895 GB, free: 24.49 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01168/10.52, allocations: 2.424 MB / 4.897 GB, free: 24 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006105/10.52, allocations: 254.3 kB / 4.897 GB, free: 23.87 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002775/10.52, allocations: 184 kB / 4.897 GB, free: 23.86 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01353/10.53, allocations: 5.283 MB / 4.902 GB, free: 23.85 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/10.55, allocations: 4.96 MB / 4.907 GB, free: 23.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.481e-05/10.55, allocations: 10.53 kB / 4.907 GB, free: 23.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005066/10.55, allocations: 6.25 kB / 4.907 GB, free: 23.27 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002968/10.55, allocations: 274.3 kB / 4.908 GB, free: 23.26 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04471/10.59, allocations: 20.83 MB / 4.928 GB, free: 13.64 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006071/10.6, allocations: 2.473 MB / 4.93 GB, free: 13.62 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004278/10.6, allocations: 2.223 MB / 4.933 GB, free: 13.59 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002599/10.6, allocations: 2.688 MB / 4.935 GB, free: 10.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006671/10.61, allocations: 2.6 MB / 4.938 GB, free: 10.52 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 2.283e-05/10.61, allocations: 0 / 4.938 GB, free: 10.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=371): time 0.09684/10.71, allocations: 23.45 MB / 4.961 GB, free: 8.227 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000218/10.71, allocations: 0.6014 MB / 4.961 GB, free: 7.535 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004809/10.71, allocations: 1.489 MB / 4.963 GB, free: 7.23 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001655/10.71, allocations: 31.17 kB / 4.963 GB, free: 7.199 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/10.72, allocations: 1.094 MB / 4.964 GB, free: 6.398 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002489/10.72, allocations: 1.257 MB / 4.965 GB, free: 5.422 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006938/10.72, allocations: 1.688 kB / 4.965 GB, free: 5.422 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003316/10.72, allocations: 482.5 kB / 4.965 GB, free: 5.043 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005024/10.72, allocations: 2.666 MB / 4.968 GB, free: 4.117 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005535/10.73, allocations: 3.636 MB / 4.972 GB, free: 1.777 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02172/10.75, allocations: 5.27 MB / 4.977 GB, free: 15.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.192e-05/10.75, allocations: 8 kB / 4.977 GB, free: 15.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.03505/10.79, allocations: 9.622 MB / 4.986 GB, free: 7.918 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3407/11.13, allocations: 9.949 MB / 4.996 GB, free: 65.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/11.13, allocations: 24.62 kB / 4.996 GB, free: 65.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006699/11.14, allocations: 1.992 MB / 4.998 GB, free: 65.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005798/11.14, allocations: 0.9168 MB / 4.999 GB, free: 65.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007072/11.15, allocations: 6.405 MB / 5.005 GB, free: 62.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007256/11.16, allocations: 428 kB / 5.005 GB, free: 62.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001894/11.16, allocations: 246.5 kB / 5.006 GB, free: 62.67 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/11.16, allocations: 5.219 kB / 5.006 GB, free: 62.67 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02608/11.18, allocations: 8.965 MB / 5.014 GB, free: 62.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/11.18, allocations: 28.28 kB / 5.014 GB, free: 62.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005599/11.19, allocations: 1.899 MB / 5.016 GB, free: 62.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00551/11.19, allocations: 0.9339 MB / 5.017 GB, free: 62.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006954/11.2, allocations: 6.199 MB / 5.023 GB, free: 59.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006334/11.21, allocations: 409 kB / 5.024 GB, free: 59.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/11.21, allocations: 240 kB / 5.024 GB, free: 59.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],NumberOfPeople.nextTimeEvent,$PRE.NumberOfPeople.nextTimeEventScaled,NumberOfPeople.nextTimeEventScaled,PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 485 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.002113/11.21, allocations: 215.5 kB / 5.024 GB, free: 59.29 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001434/11.21, allocations: 277.2 kB / 5.024 GB, free: 59.29 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01878/11.23, allocations: 8.368 MB / 5.032 GB, free: 59.03 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.915e-05/11.23, allocations: 43.06 kB / 5.032 GB, free: 59.03 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.821e-05/11.23, allocations: 2.969 kB / 5.032 GB, free: 59.03 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01343/11.25, allocations: 6.442 MB / 5.039 GB, free: 58.65 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03623/11.28, allocations: 14.25 MB / 5.053 GB, free: 57.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-05/11.28, allocations: 10.38 kB / 5.053 GB, free: 57.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004973/11.29, allocations: 0.6709 MB / 5.053 GB, free: 57.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008385/11.3, allocations: 2.304 MB / 5.056 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001527/11.3, allocations: 139.7 kB / 5.056 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006848/11.3, allocations: 6.099 MB / 5.062 GB, free: 54.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/11.3, allocations: 3.094 kB / 5.062 GB, free: 54.58 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03553/11.34, allocations: 12.03 MB / 5.073 GB, free: 53.95 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004189/11.34, allocations: 1.031 MB / 5.074 GB, free: 53.71 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002144/11.35, allocations: 76.78 kB / 5.075 GB, free: 53.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005269/11.35, allocations: 325.5 kB / 5.075 GB, free: 53.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001119/11.35, allocations: 232.5 kB / 5.075 GB, free: 53.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001104/11.35, allocations: 184.9 kB / 5.075 GB, free: 53.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.002774/11.36, allocations: 1.105 MB / 5.076 GB, free: 53.59 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01648/11.37, allocations: 3.018 MB / 5.079 GB, free: 53.59 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 3 ($whenCondition1,NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01284/11.39, allocations: 3.474 MB / 5.083 GB, free: 53.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02431/11.41, allocations: 10.21 MB / 5.093 GB, free: 52.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-05/11.41, allocations: 4.234 kB / 5.093 GB, free: 52.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006483/11.42, allocations: 3.138 MB / 5.096 GB, free: 52.96 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007571/11.42, allocations: 1.111 MB / 5.097 GB, free: 52.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02353/11.45, allocations: 8.985 MB / 5.106 GB, free: 51.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004748/11.45, allocations: 2.931 MB / 5.108 GB, free: 50.93 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/11.45, allocations: 0 / 5.108 GB, free: 50.93 MB / 490.7 MB Notification: Performance of Templates: time 0.5724/12.02, allocations: 138.9 MB / 5.244 GB, free: 58.69 MB / 490.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/TraceSubstances/RoomCO2WithControls/RoomCO2WithControls.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches