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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9322/0.9322, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 173 kB / 182.2 MB, free: 9.461 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.641/1.641, allocations: 221.5 MB / 436.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009408/0.0009408, allocations: 88.05 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002149/0.002149, allocations: 269.6 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.305e-05/2.316e-05, allocations: 0 / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5424/0.5425, allocations: 82.77 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.57/12.11, allocations: 4.148 GB / 4.906 GB, free: 16.27 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/12.11, allocations: 87.47 kB / 4.906 GB, free: 16.22 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.585/12.7, allocations: 35.95 MB / 4.941 GB, free: 255.8 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.312e-06/12.7, allocations: 0 / 4.941 GB, free: 255.8 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.401e-06/12.7, allocations: 4 kB / 4.941 GB, free: 255.8 MB / 0.698 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.0003016/12.7, allocations: 350.4 kB / 4.941 GB, free: 255.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/12.7, allocations: 7.594 kB / 4.941 GB, free: 255.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/12.7, allocations: 13.7 kB / 4.941 GB, free: 255.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.462e-05/12.7, allocations: 161 kB / 4.941 GB, free: 255.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/12.7, allocations: 3.969 kB / 4.941 GB, free: 255.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/12.7, allocations: 11.23 kB / 4.941 GB, free: 255.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.67e-05/12.7, allocations: 14.92 kB / 4.941 GB, free: 255.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.999e-05/12.7, allocations: 52.92 kB / 4.941 GB, free: 255.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/12.7, allocations: 3.984 kB / 4.941 GB, free: 255.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/12.7, allocations: 0 / 4.941 GB, free: 255.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/12.7, allocations: 0 / 4.941 GB, free: 255.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/12.7, allocations: 137.1 kB / 4.941 GB, free: 255.1 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.252e-05/12.7, allocations: 41.19 kB / 4.942 GB, free: 255 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.384e-05/12.7, allocations: 16.08 kB / 4.942 GB, free: 255 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/12.7, allocations: 7.906 kB / 4.942 GB, free: 255 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/12.7, allocations: 42.39 kB / 4.942 GB, free: 255 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/12.7, allocations: 0 / 4.942 GB, free: 255 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0006016/12.7, allocations: 334.2 kB / 4.942 GB, free: 254.7 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.308e-05/12.7, allocations: 59.16 kB / 4.942 GB, free: 254.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.894e-05/12.7, allocations: 92.94 kB / 4.942 GB, free: 254.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/12.7, allocations: 25.7 kB / 4.942 GB, free: 254.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 1.837e-05/12.7, allocations: 80.14 kB / 4.942 GB, free: 254.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/12.7, allocations: 38.17 kB / 4.942 GB, free: 254.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/12.7, allocations: 3.875 kB / 4.942 GB, free: 254.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.634e-05/12.7, allocations: 314.2 kB / 4.942 GB, free: 254.1 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.453e-05/12.7, allocations: 13.16 kB / 4.942 GB, free: 254.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.848e-05/12.7, allocations: 38.16 kB / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.262e-05/12.7, allocations: 18.48 kB / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/12.7, allocations: 0 / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001089/12.7, allocations: 88.64 kB / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/12.7, allocations: 3.906 kB / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/12.7, allocations: 0 / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/12.7, allocations: 3.891 kB / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/12.7, allocations: 22.06 kB / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/12.7, allocations: 480 / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.13e-05/12.7, allocations: 3.906 kB / 4.943 GB, free: 254.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/12.7, allocations: 3.75 kB / 4.943 GB, free: 254.1 MB / 0.698 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 6.986e-05/12.7, allocations: 111.3 kB / 4.943 GB, free: 253.9 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.813e-05/12.7, allocations: 79 kB / 4.943 GB, free: 253.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.999e-06/12.7, allocations: 3.938 kB / 4.943 GB, free: 253.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.317e-05/12.7, allocations: 7.594 kB / 4.943 GB, free: 253.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/12.7, allocations: 2.531 kB / 4.943 GB, free: 253.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/12.7, allocations: 0 / 4.943 GB, free: 253.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/12.7, allocations: 0 / 4.943 GB, free: 253.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.792e-05/12.7, allocations: 147.5 kB / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/12.7, allocations: 3.844 kB / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/12.7, allocations: 23.48 kB / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/12.7, allocations: 3.953 kB / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/12.7, allocations: 3.875 kB / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/12.7, allocations: 0 / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/12.7, allocations: 0 / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/12.7, allocations: 126.3 kB / 4.943 GB, free: 253.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.56e-05/12.7, allocations: 84.36 kB / 4.943 GB, free: 253.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/12.7, allocations: 3.953 kB / 4.943 GB, free: 253.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.653e-05/12.7, allocations: 10.39 kB / 4.943 GB, free: 253.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.594e-05/12.7, allocations: 3.219 kB / 4.943 GB, free: 253.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/12.7, allocations: 7.531 kB / 4.943 GB, free: 253.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.061e-05/12.7, allocations: 75.28 kB / 4.943 GB, free: 253.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/12.7, allocations: 0 / 4.943 GB, free: 253.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000277/12.7, allocations: 39.89 kB / 4.943 GB, free: 253.5 MB / 0.698 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.0009644/12.7, allocations: 1.22 MB / 4.945 GB, free: 252.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001277/12.7, allocations: 54.14 kB / 4.945 GB, free: 252.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/12.7, allocations: 4 kB / 4.945 GB, free: 252.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 3.191e-05/12.7, allocations: 25.62 kB / 4.945 GB, free: 252.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001547/12.7, allocations: 7.672 kB / 4.945 GB, free: 252.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005893/12.7, allocations: 319.9 kB / 4.945 GB, free: 252.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001718/12.7, allocations: 0.6902 MB / 4.946 GB, free: 251.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.041e-05/12.7, allocations: 12.09 kB / 4.946 GB, free: 251.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.855e-05/12.7, allocations: 16.47 kB / 4.946 GB, free: 251.8 MB / 0.698 GB Notification: Performance of SimCode: time 2.5e-07/12.7, allocations: 0 / 4.946 GB, free: 251.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/12.74, allocations: 5.75 MB / 4.951 GB, free: 251.1 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/12.74, allocations: 166 kB / 4.951 GB, free: 250.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/14.56, allocations: 0 / 4.951 GB, free: 250.9 MB / 0.698 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)