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.7736/0.7736, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 185.1 kB / 187.3 MB, free: 11.88 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.496/1.496, allocations: 221.3 MB / 441.4 MB, free: 4.598 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.0009292/0.0009289, allocations: 101.1 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001875/0.001875, allocations: 278.7 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.317e-05/4.33e-05, allocations: 4 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4827/0.4827, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 11.57/12.06, allocations: 4.149 GB / 4.913 GB, free: 193.3 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/12.06, allocations: 85.73 kB / 4.913 GB, free: 193.3 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.07327/12.13, allocations: 36.6 MB / 4.949 GB, free: 187 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.624e-06/12.13, allocations: 0 / 4.949 GB, free: 187 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.207e-05/12.13, allocations: 3.906 kB / 4.949 GB, free: 187 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.0004098/12.13, allocations: 351.6 kB / 4.949 GB, free: 186.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/12.13, allocations: 11.81 kB / 4.949 GB, free: 186.6 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.793e-05/12.13, allocations: 34.5 kB / 4.949 GB, free: 186.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002452/12.13, allocations: 15.52 kB / 4.949 GB, free: 186.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/12.13, allocations: 167 kB / 4.949 GB, free: 186.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/12.13, allocations: 7.781 kB / 4.949 GB, free: 186.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/12.13, allocations: 7.812 kB / 4.949 GB, free: 186.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/12.13, allocations: 55.25 kB / 4.95 GB, free: 186.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/12.13, allocations: 0 / 4.95 GB, free: 186.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/12.13, allocations: 0 / 4.95 GB, free: 186.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/12.13, allocations: 7.953 kB / 4.95 GB, free: 186.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.064e-05/12.13, allocations: 15.47 kB / 4.95 GB, free: 186.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001794/12.13, allocations: 164.5 kB / 4.95 GB, free: 186.1 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.674e-05/12.13, allocations: 58 kB / 4.95 GB, free: 186.1 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.117e-05/12.13, allocations: 15.61 kB / 4.95 GB, free: 186.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/12.13, allocations: 0 / 4.95 GB, free: 186.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/12.13, allocations: 30.56 kB / 4.95 GB, free: 186 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/12.13, allocations: 4 kB / 4.95 GB, free: 186 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0007856/12.13, allocations: 362.7 kB / 4.95 GB, free: 185.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/12.13, allocations: 51.41 kB / 4.95 GB, free: 185.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.509e-05/12.13, allocations: 91.5 kB / 4.95 GB, free: 185.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/12.13, allocations: 33.55 kB / 4.95 GB, free: 185.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.332e-05/12.13, allocations: 87.14 kB / 4.95 GB, free: 185.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.254e-05/12.13, allocations: 34.64 kB / 4.95 GB, free: 185.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-06/12.13, allocations: 3.188 kB / 4.95 GB, free: 185.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.612e-05/12.13, allocations: 320.7 kB / 4.951 GB, free: 185.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.355e-05/12.13, allocations: 15.28 kB / 4.951 GB, free: 185.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.183e-05/12.13, allocations: 30.09 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.404e-05/12.13, allocations: 29.38 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/12.13, allocations: 0 / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001278/12.13, allocations: 94.16 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/12.13, allocations: 3.906 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/12.13, allocations: 3.906 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/12.13, allocations: 3.656 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/12.13, allocations: 19.62 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/12.13, allocations: 3.953 kB / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.56e-05/12.13, allocations: 0 / 4.951 GB, free: 185.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/12.13, allocations: 7.594 kB / 4.951 GB, free: 185.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 7.136e-05/12.13, allocations: 115.5 kB / 4.951 GB, free: 185 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/12.13, allocations: 7.906 kB / 4.951 GB, free: 185 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.368e-05/12.13, allocations: 10.84 kB / 4.951 GB, free: 185 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/12.13, allocations: 3.906 kB / 4.951 GB, free: 185 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/12.13, allocations: 3.938 kB / 4.951 GB, free: 185 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/12.13, allocations: 7.938 kB / 4.951 GB, free: 185 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/12.13, allocations: 170.1 kB / 4.951 GB, free: 184.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/12.13, allocations: 0 / 4.951 GB, free: 184.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/12.13, allocations: 18.45 kB / 4.951 GB, free: 184.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/12.13, allocations: 3.906 kB / 4.951 GB, free: 184.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/12.13, allocations: 6.75 kB / 4.951 GB, free: 184.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/12.13, allocations: 1.688 kB / 4.951 GB, free: 184.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/12.13, allocations: 4 kB / 4.951 GB, free: 184.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/12.13, allocations: 137.3 kB / 4.951 GB, free: 184.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/12.13, allocations: 79.92 kB / 4.952 GB, free: 184.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/12.13, allocations: 8.062 kB / 4.952 GB, free: 184.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.756e-05/12.13, allocations: 1.266 kB / 4.952 GB, free: 184.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/12.13, allocations: 8.703 kB / 4.952 GB, free: 184.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/12.13, allocations: 5.312 kB / 4.952 GB, free: 184.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.731e-05/12.13, allocations: 79.28 kB / 4.952 GB, free: 184.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/12.13, allocations: 0 / 4.952 GB, free: 184.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003606/12.13, allocations: 52.48 kB / 4.952 GB, free: 184.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.001146/12.14, allocations: 1.136 MB / 4.953 GB, free: 183.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001385/12.14, allocations: 53.66 kB / 4.953 GB, free: 183.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/12.14, allocations: 0 / 4.953 GB, free: 183.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 3.776e-05/12.14, allocations: 25.94 kB / 4.953 GB, free: 183.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/12.14, allocations: 7.906 kB / 4.953 GB, free: 183.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006401/12.14, allocations: 331.2 kB / 4.953 GB, free: 183.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/12.14, allocations: 0.687 MB / 4.954 GB, free: 182.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.336e-05/12.14, allocations: 11.44 kB / 4.954 GB, free: 182.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.257e-05/12.14, allocations: 21.5 kB / 4.954 GB, free: 182.7 MB / 0.698 GB Notification: Performance of SimCode: time 5.61e-07/12.14, allocations: 0 / 4.954 GB, free: 182.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/12.17, allocations: 12.67 MB / 4.966 GB, free: 179.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/12.17, allocations: 183.9 kB / 4.966 GB, free: 179.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/14.2, allocations: 1.562 kB / 4.966 GB, free: 179.4 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)