Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",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.003074/0.003074, allocations: 183.2 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7119/0.7119, allocations: 133.5 MB / 141.4 MB, free: 15.67 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.673/1.673, allocations: 221.3 MB / 395 MB, free: 10.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008938/0.0008938, allocations: 93.16 kB / 477.8 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4523/0.4532, allocations: 88.43 MB / 0.5529 GB, free: 89.22 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1973/0.6505, allocations: 82.3 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.908/10.56, allocations: 4.151 GB / 4.784 GB, free: 248 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/10.56, allocations: 77.55 kB / 4.784 GB, free: 247.9 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.06559/10.62, allocations: 36.32 MB / 4.819 GB, free: 211.4 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/10.62, allocations: 12 kB / 4.819 GB, free: 211.4 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/10.62, allocations: 11.89 kB / 4.819 GB, free: 211.4 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.011e-05/10.62, allocations: 167 kB / 4.82 GB, free: 211.2 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/10.62, allocations: 0 / 4.82 GB, free: 211.2 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/10.62, allocations: 7.906 kB / 4.82 GB, free: 211.2 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.704e-05/10.62, allocations: 15.98 kB / 4.82 GB, free: 211.2 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.018e-05/10.62, allocations: 41.69 kB / 4.82 GB, free: 211.1 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/10.63, allocations: 4 kB / 4.82 GB, free: 211.1 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/10.63, allocations: 3.938 kB / 4.82 GB, free: 211.1 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/10.63, allocations: 4 kB / 4.82 GB, free: 211.1 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/10.63, allocations: 142.1 kB / 4.82 GB, free: 211 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 5.395e-05/10.63, allocations: 41.64 kB / 4.82 GB, free: 210.9 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.508e-05/10.63, allocations: 16.86 kB / 4.82 GB, free: 210.9 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/10.63, allocations: 0 / 4.82 GB, free: 210.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.418e-05/10.63, allocations: 30.56 kB / 4.82 GB, free: 210.9 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 7.81e-07/10.63, allocations: 0 / 4.82 GB, free: 210.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.000589/10.63, allocations: 338.6 kB / 4.82 GB, free: 210.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.618e-05/10.63, allocations: 51.41 kB / 4.82 GB, free: 210.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.116e-05/10.63, allocations: 89 kB / 4.82 GB, free: 210.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/10.63, allocations: 25.7 kB / 4.82 GB, free: 210.3 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 1.578e-05/10.63, allocations: 80.58 kB / 4.82 GB, free: 210.2 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/10.63, allocations: 39.58 kB / 4.821 GB, free: 210.2 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/10.63, allocations: 0 / 4.821 GB, free: 210.2 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 4.933e-05/10.63, allocations: 322.8 kB / 4.821 GB, free: 209.8 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.465e-05/10.63, allocations: 12 kB / 4.821 GB, free: 209.8 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.369e-05/10.63, allocations: 29.72 kB / 4.821 GB, free: 209.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.487e-05/10.63, allocations: 27.95 kB / 4.821 GB, free: 209.8 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/10.63, allocations: 3.938 kB / 4.821 GB, free: 209.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 9.69e-05/10.63, allocations: 85.53 kB / 4.821 GB, free: 209.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/10.63, allocations: 6.656 kB / 4.821 GB, free: 209.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/10.63, allocations: 4 kB / 4.821 GB, free: 209.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/10.63, allocations: 0 / 4.821 GB, free: 209.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/10.63, allocations: 23.98 kB / 4.821 GB, free: 209.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/10.63, allocations: 0 / 4.821 GB, free: 209.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.373e-05/10.63, allocations: 7.844 kB / 4.821 GB, free: 209.6 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/10.63, allocations: 4 kB / 4.821 GB, free: 209.6 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/10.63, allocations: 105 kB / 4.821 GB, free: 209.5 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.307e-05/10.63, allocations: 3.906 kB / 4.821 GB, free: 209.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.716e-05/10.63, allocations: 15.91 kB / 4.821 GB, free: 209.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/10.63, allocations: 4 kB / 4.821 GB, free: 209.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/10.63, allocations: 3.938 kB / 4.821 GB, free: 209.5 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/10.63, allocations: 0 / 4.821 GB, free: 209.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.684e-05/10.63, allocations: 146.2 kB / 4.821 GB, free: 209.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/10.63, allocations: 0 / 4.821 GB, free: 209.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/10.63, allocations: 27.98 kB / 4.821 GB, free: 209.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/10.63, allocations: 0 / 4.821 GB, free: 209.3 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/10.63, allocations: 0 / 4.821 GB, free: 209.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/10.63, allocations: 3.938 kB / 4.821 GB, free: 209.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/10.63, allocations: 3.906 kB / 4.821 GB, free: 209.3 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001344/10.63, allocations: 129 kB / 4.821 GB, free: 209.1 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002234/10.63, allocations: 0.5247 MB / 4.822 GB, free: 208.6 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.168e-05/10.63, allocations: 85.12 kB / 4.822 GB, free: 208.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/10.63, allocations: 3.938 kB / 4.822 GB, free: 208.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.299e-05/10.63, allocations: 7.984 kB / 4.822 GB, free: 208.5 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.11e-05/10.63, allocations: 8 kB / 4.822 GB, free: 208.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/10.63, allocations: 8.125 kB / 4.822 GB, free: 208.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.776e-05/10.63, allocations: 75.28 kB / 4.822 GB, free: 208.4 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0009201/10.63, allocations: 87.98 kB / 4.822 GB, free: 208.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006205/10.63, allocations: 0.6725 MB / 4.823 GB, free: 207.6 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001099/10.63, allocations: 48.27 kB / 4.823 GB, free: 207.6 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/10.63, allocations: 0 / 4.823 GB, free: 207.6 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 2.76e-05/10.63, allocations: 27.94 kB / 4.823 GB, free: 207.6 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/10.63, allocations: 7.906 kB / 4.823 GB, free: 207.5 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/10.63, allocations: 270.1 kB / 4.823 GB, free: 207.3 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/10.63, allocations: 0.7114 MB / 4.824 GB, free: 206.5 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/10.63, allocations: 3.938 kB / 4.824 GB, free: 206.5 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)