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.824/0.824, allocations: 143.3 MB / 158.3 MB, free: 5.758 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.001693/0.001693, allocations: 175.4 kB / 191.5 MB, free: 5.758 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.434/1.434, allocations: 223.2 MB / 447.7 MB, free: 4.832 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.0009192/0.0009191, allocations: 92.33 kB / 0.5187 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001689/0.001689, allocations: 277.3 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00042/0.00042, allocations: 11.72 kB / 0.6929 GB, free: 59.61 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1406, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.705/8.846, allocations: 4.149 GB / 4.923 GB, free: 78.05 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/8.846, allocations: 84.36 kB / 4.923 GB, free: 78.01 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.06691/8.913, allocations: 36.67 MB / 4.958 GB, free: 47.42 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.565e-06/8.913, allocations: 0 / 4.958 GB, free: 47.42 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.444e-06/8.913, allocations: 4 kB / 4.958 GB, free: 47.42 MB / 0.7136 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.000276/8.913, allocations: 358.3 kB / 4.959 GB, free: 47.03 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/8.913, allocations: 12.5 kB / 4.959 GB, free: 47.02 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.884e-05/8.914, allocations: 34.56 kB / 4.959 GB, free: 46.97 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/8.914, allocations: 20.72 kB / 4.959 GB, free: 46.95 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.699e-05/8.914, allocations: 163 kB / 4.959 GB, free: 46.75 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/8.914, allocations: 3.438 kB / 4.959 GB, free: 46.75 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/8.914, allocations: 7.906 kB / 4.959 GB, free: 46.75 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/8.914, allocations: 56.73 kB / 4.959 GB, free: 46.69 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/8.914, allocations: 0 / 4.959 GB, free: 46.69 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/8.914, allocations: 0 / 4.959 GB, free: 46.69 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/8.914, allocations: 7.953 kB / 4.959 GB, free: 46.68 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.256e-05/8.914, allocations: 19.8 kB / 4.959 GB, free: 46.67 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/8.914, allocations: 161.1 kB / 4.959 GB, free: 46.47 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.067e-05/8.914, allocations: 45.44 kB / 4.959 GB, free: 46.42 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/8.914, allocations: 4 kB / 4.959 GB, free: 46.42 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/8.914, allocations: 30.56 kB / 4.959 GB, free: 46.38 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/8.914, allocations: 3.984 kB / 4.959 GB, free: 46.38 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0006334/8.915, allocations: 385.3 kB / 4.96 GB, free: 45.99 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/8.915, allocations: 51.41 kB / 4.96 GB, free: 45.93 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.73e-05/8.915, allocations: 96.94 kB / 4.96 GB, free: 45.82 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/8.915, allocations: 29.45 kB / 4.96 GB, free: 45.79 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 1.646e-05/8.915, allocations: 80.14 kB / 4.96 GB, free: 45.71 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/8.915, allocations: 35.14 kB / 4.96 GB, free: 45.68 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/8.915, allocations: 7.438 kB / 4.96 GB, free: 45.68 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.586e-05/8.915, allocations: 314.8 kB / 4.96 GB, free: 45.36 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.817e-05/8.915, allocations: 14.94 kB / 4.96 GB, free: 45.35 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.788e-05/8.915, allocations: 36.89 kB / 4.96 GB, free: 45.32 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.878e-05/8.915, allocations: 27.61 kB / 4.96 GB, free: 45.3 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/8.915, allocations: 0 / 4.96 GB, free: 45.3 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001083/8.915, allocations: 100.2 kB / 4.96 GB, free: 45.21 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/8.915, allocations: 4 kB / 4.96 GB, free: 45.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/8.915, allocations: 0 / 4.96 GB, free: 45.21 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/8.915, allocations: 4 kB / 4.961 GB, free: 45.2 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/8.916, allocations: 16 kB / 4.961 GB, free: 45.19 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/8.916, allocations: 12.08 kB / 4.961 GB, free: 45.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.988e-05/8.916, allocations: 7.438 kB / 4.961 GB, free: 45.17 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-06/8.916, allocations: 0 / 4.961 GB, free: 45.17 MB / 0.7136 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 () * Number of clocked 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.676e-05/8.916, allocations: 121.7 kB / 4.961 GB, free: 45.05 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/8.916, allocations: 4 kB / 4.961 GB, free: 45.04 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.303e-05/8.916, allocations: 15.59 kB / 4.961 GB, free: 45.04 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/8.916, allocations: 0 / 4.961 GB, free: 45.04 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/8.916, allocations: 4 kB / 4.961 GB, free: 45.03 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/8.916, allocations: 3.953 kB / 4.961 GB, free: 45.03 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.887e-05/8.916, allocations: 169.1 kB / 4.961 GB, free: 44.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/8.916, allocations: 0 / 4.961 GB, free: 44.82 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/8.916, allocations: 23.98 kB / 4.961 GB, free: 44.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/8.916, allocations: 4 kB / 4.961 GB, free: 44.79 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/8.916, allocations: 3.375 kB / 4.961 GB, free: 44.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/8.916, allocations: 0 / 4.961 GB, free: 44.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/8.916, allocations: 7.938 kB / 4.961 GB, free: 44.79 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/8.916, allocations: 126.8 kB / 4.961 GB, free: 44.66 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/8.916, allocations: 89.08 kB / 4.961 GB, free: 44.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/8.916, allocations: 3.812 kB / 4.961 GB, free: 44.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.605e-05/8.916, allocations: 8 kB / 4.961 GB, free: 44.55 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.61e-05/8.916, allocations: 11.98 kB / 4.961 GB, free: 44.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/8.916, allocations: 3.688 kB / 4.961 GB, free: 44.54 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.91e-05/8.916, allocations: 79.28 kB / 4.961 GB, free: 44.46 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/8.916, allocations: 0 / 4.961 GB, free: 44.46 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003198/8.917, allocations: 49.48 kB / 4.961 GB, free: 44.43 MB / 0.7136 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 () * Number of clocked 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.0008262/8.918, allocations: 1.137 MB / 4.962 GB, free: 43.31 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001165/8.918, allocations: 55.73 kB / 4.962 GB, free: 43.27 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/8.918, allocations: 0 / 4.962 GB, free: 43.27 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.194e-05/8.918, allocations: 35.56 kB / 4.962 GB, free: 43.24 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/8.918, allocations: 4.156 kB / 4.962 GB, free: 43.23 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007839/8.919, allocations: 0.8231 MB / 4.963 GB, free: 42.39 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/8.919, allocations: 0.6964 MB / 4.964 GB, free: 41.67 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.613e-05/8.919, allocations: 8.656 kB / 4.964 GB, free: 41.66 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/8.919, allocations: 19.31 kB / 4.964 GB, free: 41.64 MB / 0.7136 GB Notification: Performance of SimCode: time 8.01e-07/8.919, allocations: 0 / 4.964 GB, free: 41.64 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/8.94, allocations: 10.88 MB / 4.975 GB, free: 30.94 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/8.94, allocations: 202.3 kB / 4.975 GB, free: 30.71 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/10.98, allocations: 2.188 kB / 4.975 GB, free: 30.71 MB / 0.7136 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)