Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.6986/0.6986, allocations: 141.8 MB / 149.1 MB, free: 4.5 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001077, allocations: 187.3 kB / 181.9 MB, free: 164 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.3 MB / 436 MB, free: 9.312 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 96.22 kB / 0.507 GB, free: 24.22 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001818/0.001818, allocations: 268.4 kB / 0.5884 GB, free: 12.34 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1702/0.1721, allocations: 89.66 MB / 0.676 GB, free: 2.598 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.5141, allocations: 82.75 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.715/7.229, allocations: 4.148 GB / 4.905 GB, free: 115.1 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/7.23, allocations: 91.88 kB / 4.905 GB, free: 115.1 MB / 0.6982 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.06367/7.294, allocations: 36.29 MB / 4.94 GB, free: 78.36 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/7.294, allocations: 13.19 kB / 4.94 GB, free: 78.34 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/7.294, allocations: 11.91 kB / 4.94 GB, free: 78.33 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.854e-05/7.294, allocations: 174.9 kB / 4.941 GB, free: 78.12 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/7.294, allocations: 4 kB / 4.941 GB, free: 78.12 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/7.294, allocations: 4 kB / 4.941 GB, free: 78.11 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.424e-05/7.294, allocations: 21.3 kB / 4.941 GB, free: 78.09 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.279e-05/7.294, allocations: 44.33 kB / 4.941 GB, free: 78.05 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/7.294, allocations: 0 / 4.941 GB, free: 78.05 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/7.294, allocations: 3.906 kB / 4.941 GB, free: 78.04 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/7.294, allocations: 4 kB / 4.941 GB, free: 78.04 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/7.294, allocations: 134.2 kB / 4.941 GB, free: 77.87 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 5.744e-05/7.294, allocations: 45.66 kB / 4.941 GB, free: 77.82 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/7.294, allocations: 12.8 kB / 4.941 GB, free: 77.8 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/7.294, allocations: 4 kB / 4.941 GB, free: 77.8 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/7.294, allocations: 38.55 kB / 4.941 GB, free: 77.75 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/7.294, allocations: 0 / 4.941 GB, free: 77.75 MB / 0.6982 GB Notification: Performance of matching and sorting (n=11): time 0.0005637/7.295, allocations: 338.3 kB / 4.941 GB, free: 77.37 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.613e-05/7.295, allocations: 51.41 kB / 4.941 GB, free: 77.31 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.571e-05/7.295, allocations: 92.98 kB / 4.941 GB, free: 77.21 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/7.295, allocations: 31.11 kB / 4.941 GB, free: 77.18 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 1.294e-05/7.295, allocations: 80.14 kB / 4.941 GB, free: 77.09 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/7.295, allocations: 35.38 kB / 4.941 GB, free: 77.06 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/7.295, allocations: 0 / 4.941 GB, free: 77.06 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 4.007e-05/7.295, allocations: 323 kB / 4.942 GB, free: 76.73 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.428e-05/7.295, allocations: 16 kB / 4.942 GB, free: 76.72 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.142e-05/7.295, allocations: 29.72 kB / 4.942 GB, free: 76.68 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.261e-05/7.295, allocations: 15.98 kB / 4.942 GB, free: 76.67 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/7.295, allocations: 4 kB / 4.942 GB, free: 76.66 MB / 0.6982 GB Notification: Performance of matching and sorting (n=14) (initialization): time 9.865e-05/7.295, allocations: 87.78 kB / 4.942 GB, free: 76.57 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/7.295, allocations: 4 kB / 4.942 GB, free: 76.57 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/7.295, allocations: 0 / 4.942 GB, free: 76.57 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/7.295, allocations: 7.922 kB / 4.942 GB, free: 76.56 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/7.296, allocations: 31.98 kB / 4.942 GB, free: 76.53 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/7.296, allocations: 0 / 4.942 GB, free: 76.53 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.151e-05/7.296, allocations: 0.5625 kB / 4.942 GB, free: 76.53 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/7.296, allocations: 4 kB / 4.942 GB, free: 76.53 MB / 0.6982 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 5.043e-05/7.296, allocations: 104.9 kB / 4.942 GB, free: 76.42 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/7.296, allocations: 7.906 kB / 4.942 GB, free: 76.41 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/7.296, allocations: 11.89 kB / 4.942 GB, free: 76.4 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/7.296, allocations: 4 kB / 4.942 GB, free: 76.39 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/7.296, allocations: 1.031 kB / 4.942 GB, free: 76.39 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/7.296, allocations: 4 kB / 4.942 GB, free: 76.39 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.217e-05/7.296, allocations: 142.1 kB / 4.942 GB, free: 76.21 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/7.296, allocations: 0 / 4.942 GB, free: 76.21 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/7.296, allocations: 23.98 kB / 4.942 GB, free: 76.19 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/7.296, allocations: 4 kB / 4.942 GB, free: 76.19 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/7.296, allocations: 0 / 4.942 GB, free: 76.19 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/7.296, allocations: 0 / 4.942 GB, free: 76.19 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/7.296, allocations: 0 / 4.942 GB, free: 76.19 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001327/7.296, allocations: 128.9 kB / 4.942 GB, free: 76.04 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002183/7.296, allocations: 0.5286 MB / 4.943 GB, free: 75.49 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 5.602e-05/7.296, allocations: 86.41 kB / 4.943 GB, free: 75.39 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/7.296, allocations: 0 / 4.943 GB, free: 75.39 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.934e-05/7.296, allocations: 336 / 4.943 GB, free: 75.39 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.619e-05/7.297, allocations: 7.984 kB / 4.943 GB, free: 75.38 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/7.297, allocations: 15.84 kB / 4.943 GB, free: 75.37 MB / 0.6982 GB Notification: Performance of sort global known variables: time 1.304e-05/7.297, allocations: 79.28 kB / 4.943 GB, free: 75.29 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0008446/7.297, allocations: 91.98 kB / 4.943 GB, free: 75.2 MB / 0.6982 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.0005571/7.298, allocations: 0.6717 MB / 4.944 GB, free: 74.53 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 9.235e-05/7.298, allocations: 40 kB / 4.944 GB, free: 74.49 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/7.298, allocations: 4 kB / 4.944 GB, free: 74.48 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 2.686e-05/7.298, allocations: 27.94 kB / 4.944 GB, free: 74.46 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/7.298, allocations: 9.859 kB / 4.944 GB, free: 74.45 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004263/7.299, allocations: 266.1 kB / 4.944 GB, free: 74.16 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/7.299, allocations: 0.7036 MB / 4.945 GB, free: 73.43 MB / 0.6982 GB Notification: Performance of SimCode: time 2.3e-07/7.299, allocations: 0 / 4.945 GB, free: 73.43 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)