Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") [: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.001651/0.001651, allocations: 176 kB / 8.152 MB, free: 2.18 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.804/1.804, allocations: 205.2 MB / 213.8 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001302/0.001301, allocations: 95.72 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.132e-05/1.184e-05, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.299, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.007/8.306, allocations: 3.611 GB / 3.964 GB, free: 118 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/8.306, allocations: 80.84 kB / 3.965 GB, free: 118 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.799/11.1, allocations: 0.5512 GB / 4.516 GB, free: 39.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.833e-05/11.11, allocations: 26.53 kB / 4.516 GB, free: 39.9 MB / 442.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.01315/11.12, allocations: 3.003 MB / 4.519 GB, free: 38.22 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/11.12, allocations: 11.16 kB / 4.519 GB, free: 38.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/11.12, allocations: 130.2 kB / 4.519 GB, free: 38.17 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002623/11.12, allocations: 0.7256 MB / 4.52 GB, free: 37.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/11.12, allocations: 101 kB / 4.52 GB, free: 37.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000321/11.12, allocations: 53.25 kB / 4.52 GB, free: 37.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003958/11.13, allocations: 1.323 MB / 4.521 GB, free: 37.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004166/11.13, allocations: 1.32 MB / 4.522 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.721e-05/11.13, allocations: 3.969 kB / 4.522 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002251/11.13, allocations: 3.75 kB / 4.522 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/11.13, allocations: 69.05 kB / 4.522 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02178/11.15, allocations: 6.431 MB / 4.529 GB, free: 34.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/11.16, allocations: 0.62 MB / 4.529 GB, free: 34.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/11.16, allocations: 482.1 kB / 4.53 GB, free: 34.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001786/11.16, allocations: 1.237 MB / 4.531 GB, free: 32.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.153e-05/11.16, allocations: 47.38 kB / 4.531 GB, free: 32.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 5.42e-06/11.16, allocations: 1.031 kB / 4.531 GB, free: 32.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.0398/11.2, allocations: 4.261 MB / 4.535 GB, free: 32.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/11.2, allocations: 112.7 kB / 4.535 GB, free: 32.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/11.2, allocations: 0.5549 MB / 4.536 GB, free: 31.92 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004891/11.2, allocations: 28.45 kB / 4.536 GB, free: 31.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003708/11.2, allocations: 445.4 kB / 4.536 GB, free: 31.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006441/11.2, allocations: 313.1 kB / 4.536 GB, free: 31.35 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/11.2, allocations: 1.562 kB / 4.536 GB, free: 31.35 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/11.2, allocations: 360 kB / 4.537 GB, free: 31.04 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/11.21, allocations: 0.5526 MB / 4.537 GB, free: 31.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003065/11.21, allocations: 0.8802 MB / 4.538 GB, free: 30.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/11.22, allocations: 1.353 MB / 4.54 GB, free: 30.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.314e-05/11.22, allocations: 2.656 kB / 4.54 GB, free: 30.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.01823/11.24, allocations: 2.264 MB / 4.542 GB, free: 30.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00119/11.24, allocations: 3.928 MB / 4.546 GB, free: 26.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.265e-05/11.24, allocations: 10.44 kB / 4.546 GB, free: 26.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002394/11.24, allocations: 245 kB / 4.546 GB, free: 26.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/11.25, allocations: 281.2 kB / 4.546 GB, free: 26.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/11.25, allocations: 0.858 MB / 4.547 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/11.25, allocations: 86.42 kB / 4.547 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005614/11.25, allocations: 76.75 kB / 4.547 GB, free: 25.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/11.25, allocations: 6.062 kB / 4.547 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01857/11.27, allocations: 2.143 MB / 4.549 GB, free: 25.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.042e-05/11.27, allocations: 11.16 kB / 4.549 GB, free: 25.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/11.27, allocations: 250.3 kB / 4.549 GB, free: 25.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/11.28, allocations: 270.7 kB / 4.55 GB, free: 25.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/11.28, allocations: 0.8631 MB / 4.551 GB, free: 25.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/11.28, allocations: 76.78 kB / 4.551 GB, free: 25.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002509/11.28, allocations: 82.2 kB / 4.551 GB, free: 25.21 MB / 442.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.0005393/11.28, allocations: 75.31 kB / 4.551 GB, free: 25.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003886/11.28, allocations: 83.19 kB / 4.551 GB, free: 25.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007609/11.29, allocations: 1.878 MB / 4.553 GB, free: 24.97 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/11.29, allocations: 9.156 kB / 4.553 GB, free: 24.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/11.29, allocations: 0 / 4.553 GB, free: 24.97 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.529e-05/11.29, allocations: 6.844 kB / 4.553 GB, free: 24.97 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/11.3, allocations: 3.892 MB / 4.556 GB, free: 24.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.504e-05/11.3, allocations: 3.812 kB / 4.557 GB, free: 24.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/11.31, allocations: 176.7 kB / 4.557 GB, free: 24.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002469/11.31, allocations: 317.6 kB / 4.557 GB, free: 24.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/11.31, allocations: 26.23 kB / 4.557 GB, free: 24.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/11.31, allocations: 0.8387 MB / 4.558 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/11.31, allocations: 7.453 kB / 4.558 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007636/11.32, allocations: 2.521 MB / 4.56 GB, free: 22.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/11.32, allocations: 325.8 kB / 4.561 GB, free: 22.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/11.32, allocations: 13.02 kB / 4.561 GB, free: 22.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/11.32, allocations: 75.92 kB / 4.561 GB, free: 22.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/11.32, allocations: 64.8 kB / 4.561 GB, free: 22.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001954/11.32, allocations: 56.62 kB / 4.561 GB, free: 22.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0007891/11.32, allocations: 429.3 kB / 4.561 GB, free: 21.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005803/11.33, allocations: 1.271 MB / 4.562 GB, free: 21.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (94): * Single equations (assignments): 91 * 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.00763/11.34, allocations: 2.231 MB / 4.565 GB, free: 21.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00633/11.34, allocations: 2.301 MB / 4.567 GB, free: 20.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/11.34, allocations: 3.469 kB / 4.567 GB, free: 20.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001831/11.34, allocations: 0.6542 MB / 4.568 GB, free: 19.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003805/11.35, allocations: 380.7 kB / 4.568 GB, free: 19.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00826/11.36, allocations: 2.116 MB / 4.57 GB, free: 17.69 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001758/11.36, allocations: 1.296 MB / 4.571 GB, free: 16.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.683e-06/11.36, allocations: 0 / 4.571 GB, free: 16.55 MB / 442.7 MB Notification: Performance of Templates: time 0.07244/11.43, allocations: 35.54 MB / 4.606 GB, free: 5.488 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches