Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.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: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.0009523/0.0009523, allocations: 182.6 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.076/1.076, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0008824/0.0008822, allocations: 93.25 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08907/0.08998, allocations: 55.81 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.2686, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7325/1.001, allocations: 0.5359 GB / 0.9138 GB, free: 89.16 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001716/1.001, allocations: 78.5 kB / 0.9139 GB, free: 89.09 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.3522/1.354, allocations: 147.3 MB / 1.058 GB, free: 114.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/1.354, allocations: 8.094 kB / 1.058 GB, free: 114.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005703/1.354, allocations: 76.05 kB / 1.058 GB, free: 114.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/1.355, allocations: 334.1 kB / 1.058 GB, free: 114.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/1.355, allocations: 11.25 kB / 1.058 GB, free: 114.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/1.355, allocations: 27.34 kB / 1.058 GB, free: 114.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003829/1.355, allocations: 265.2 kB / 1.058 GB, free: 114.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005192/1.356, allocations: 393.2 kB / 1.059 GB, free: 114 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/1.356, allocations: 2.719 kB / 1.059 GB, free: 114 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/1.356, allocations: 7.875 kB / 1.059 GB, free: 114 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/1.356, allocations: 12.05 kB / 1.059 GB, free: 114 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009576/1.365, allocations: 6.284 MB / 1.065 GB, free: 108.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/1.365, allocations: 169.8 kB / 1.065 GB, free: 108.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/1.366, allocations: 138.6 kB / 1.065 GB, free: 108.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007364/1.373, allocations: 3.524 MB / 1.069 GB, free: 104.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/1.373, allocations: 38.56 kB / 1.069 GB, free: 104.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 2.034e-06/1.373, allocations: 4 kB / 1.069 GB, free: 104.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.003765/1.377, allocations: 1.415 MB / 1.07 GB, free: 102.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.829e-05/1.377, allocations: 55.41 kB / 1.07 GB, free: 102.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/1.377, allocations: 229 kB / 1.07 GB, free: 102.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/1.377, allocations: 29.69 kB / 1.07 GB, free: 102.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/1.377, allocations: 203.9 kB / 1.071 GB, free: 102.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.384e-05/1.377, allocations: 161.7 kB / 1.071 GB, free: 102.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/1.377, allocations: 0 / 1.071 GB, free: 102.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.122e-05/1.377, allocations: 342.8 kB / 1.071 GB, free: 101.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/1.377, allocations: 133.3 kB / 1.071 GB, free: 101.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/1.378, allocations: 259.3 kB / 1.071 GB, free: 101.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007094/1.378, allocations: 256.6 kB / 1.072 GB, free: 101.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/1.378, allocations: 4 kB / 1.072 GB, free: 101.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001256/1.38, allocations: 0.6026 MB / 1.072 GB, free: 100.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/1.38, allocations: 7.828 kB / 1.072 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/1.38, allocations: 4 kB / 1.072 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003438/1.38, allocations: 110.9 kB / 1.072 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/1.38, allocations: 107.8 kB / 1.072 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/1.382, allocations: 2.478 MB / 1.075 GB, free: 97.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/1.382, allocations: 35.92 kB / 1.075 GB, free: 97.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/1.382, allocations: 20.62 kB / 1.075 GB, free: 97.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 8.06e-05/1.382, allocations: 112.9 kB / 1.075 GB, free: 97.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.096e-05/1.382, allocations: 31.62 kB / 1.075 GB, free: 97.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/1.384, allocations: 0.8362 MB / 1.076 GB, free: 96.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/1.384, allocations: 11.98 kB / 1.076 GB, free: 96.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/1.384, allocations: 3.906 kB / 1.076 GB, free: 96.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001015/1.385, allocations: 0.9386 MB / 1.077 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/1.386, allocations: 1.392 MB / 1.078 GB, free: 94.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/1.386, allocations: 0 / 1.078 GB, free: 94.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/1.387, allocations: 79.81 kB / 1.078 GB, free: 94.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004256/1.387, allocations: 188.6 kB / 1.078 GB, free: 93.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.833e-05/1.387, allocations: 8 kB / 1.078 GB, free: 93.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008306/1.388, allocations: 1.383 MB / 1.08 GB, free: 92.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.388, allocations: 4 kB / 1.08 GB, free: 92.45 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001387/1.389, allocations: 1.191 MB / 1.081 GB, free: 91.23 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001696/1.391, allocations: 1.941 MB / 1.083 GB, free: 89.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.785e-05/1.391, allocations: 112.5 kB / 1.083 GB, free: 89.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.855e-05/1.391, allocations: 8 kB / 1.083 GB, free: 89.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/1.392, allocations: 19.92 kB / 1.083 GB, free: 89.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/1.392, allocations: 28.48 kB / 1.083 GB, free: 89.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/1.392, allocations: 19.98 kB / 1.083 GB, free: 89.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0001106/1.392, allocations: 177.2 kB / 1.083 GB, free: 88.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001278/1.393, allocations: 256 kB / 1.083 GB, free: 88.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001155/1.394, allocations: 0.5161 MB / 1.084 GB, free: 88.13 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008269/1.395, allocations: 0.6464 MB / 1.085 GB, free: 87.47 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.395, allocations: 4 kB / 1.085 GB, free: 87.47 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00048/1.396, allocations: 384.5 kB / 1.085 GB, free: 87.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008581/1.396, allocations: 179.8 kB / 1.085 GB, free: 86.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/1.398, allocations: 0.941 MB / 1.086 GB, free: 85.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/1.398, allocations: 0.9003 MB / 1.087 GB, free: 85.04 MB / 442.7 MB Notification: Performance of SimCode: time 2.91e-07/1.398, allocations: 0 / 1.087 GB, free: 85.04 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat does not exist to compare? outputFormat=mat