Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.23/2.23, allocations: 393.5 MB / 408.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 183.9 kB / 0.4901 GB, free: 2.219 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.587/1.587, allocations: 223.1 MB / 0.7992 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009347/0.0009346, allocations: 100.3 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004189, allocations: 11.05 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2891, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 9.639/9.928, allocations: 4.189 GB / 5.419 GB, free: 44.47 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/9.929, allocations: 84.45 kB / 5.419 GB, free: 44.39 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.06754/9.996, allocations: 36.68 MB / 5.454 GB, free: 7.258 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.044e-06/9.996, allocations: 0 / 5.454 GB, free: 7.258 MB / 1.167 GB Notification: Performance of Transformations before backend: time 6.743e-06/9.996, allocations: 0 / 5.454 GB, free: 7.258 MB / 1.167 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.0003353/9.997, allocations: 363.2 kB / 5.455 GB, free: 6.855 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/9.997, allocations: 12.56 kB / 5.455 GB, free: 6.844 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/9.997, allocations: 34.5 kB / 5.455 GB, free: 6.801 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/9.997, allocations: 15.98 kB / 5.455 GB, free: 6.785 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.745e-05/9.997, allocations: 167 kB / 5.455 GB, free: 6.582 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/9.997, allocations: 4 kB / 5.455 GB, free: 6.578 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/9.997, allocations: 3.906 kB / 5.455 GB, free: 6.574 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/9.997, allocations: 57.62 kB / 5.455 GB, free: 6.512 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/9.997, allocations: 0 / 5.455 GB, free: 6.512 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/9.997, allocations: 0 / 5.455 GB, free: 6.512 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/9.997, allocations: 8 kB / 5.455 GB, free: 6.504 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.626e-05/9.997, allocations: 19.92 kB / 5.455 GB, free: 6.484 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/9.997, allocations: 161.7 kB / 5.455 GB, free: 6.277 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 8.069e-05/9.997, allocations: 46.55 kB / 5.455 GB, free: 6.223 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/9.997, allocations: 0 / 5.455 GB, free: 6.223 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/9.998, allocations: 42.55 kB / 5.455 GB, free: 6.172 MB / 1.167 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/9.998, allocations: 4 kB / 5.455 GB, free: 6.168 MB / 1.167 GB Notification: Performance of matching and sorting (n=11): time 0.0006991/9.998, allocations: 378.1 kB / 5.456 GB, free: 5.746 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.717e-05/9.998, allocations: 55.41 kB / 5.456 GB, free: 5.68 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.161e-05/9.998, allocations: 85 kB / 5.456 GB, free: 5.59 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/9.998, allocations: 29.7 kB / 5.456 GB, free: 5.555 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 1.565e-05/9.998, allocations: 80.14 kB / 5.456 GB, free: 5.473 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/9.998, allocations: 39.58 kB / 5.456 GB, free: 5.434 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-06/9.998, allocations: 8 kB / 5.456 GB, free: 5.426 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.276e-05/9.998, allocations: 314.8 kB / 5.456 GB, free: 5.109 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.068e-05/9.999, allocations: 20 kB / 5.456 GB, free: 5.09 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.808e-05/9.999, allocations: 29.7 kB / 5.456 GB, free: 5.055 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.42e-05/9.999, allocations: 23.98 kB / 5.456 GB, free: 5.031 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/9.999, allocations: 0 / 5.456 GB, free: 5.031 MB / 1.167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001175/9.999, allocations: 101.5 kB / 5.456 GB, free: 4.926 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/9.999, allocations: 11.95 kB / 5.456 GB, free: 4.914 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/9.999, allocations: 0 / 5.456 GB, free: 4.914 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/9.999, allocations: 4 kB / 5.456 GB, free: 4.91 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/9.999, allocations: 19.98 kB / 5.456 GB, free: 4.891 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/9.999, allocations: 4 kB / 5.456 GB, free: 4.887 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.31e-05/9.999, allocations: 3.938 kB / 5.456 GB, free: 4.883 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/9.999, allocations: 8 kB / 5.456 GB, free: 4.875 MB / 1.167 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 6.788e-05/9.999, allocations: 109.8 kB / 5.457 GB, free: 4.758 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.379e-05/9.999, allocations: 4 kB / 5.457 GB, free: 4.754 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/9.999, allocations: 15.92 kB / 5.457 GB, free: 4.742 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/9.999, allocations: 4 kB / 5.457 GB, free: 4.738 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/9.999, allocations: 0 / 5.457 GB, free: 4.738 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/9.999, allocations: 0 / 5.457 GB, free: 4.738 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/9.999, allocations: 169.6 kB / 5.457 GB, free: 4.523 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/9.999, allocations: 3.938 kB / 5.457 GB, free: 4.52 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/9.999, allocations: 27.98 kB / 5.457 GB, free: 4.492 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/9.999, allocations: 0 / 5.457 GB, free: 4.492 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/9.999, allocations: 0 / 5.457 GB, free: 4.492 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/9.999, allocations: 11.89 kB / 5.457 GB, free: 4.48 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/9.999, allocations: 4.688 kB / 5.457 GB, free: 4.477 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/10, allocations: 137 kB / 5.457 GB, free: 4.324 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.799e-05/10, allocations: 85.14 kB / 5.457 GB, free: 4.223 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/10, allocations: 0 / 5.457 GB, free: 4.223 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.776e-05/10, allocations: 12 kB / 5.457 GB, free: 4.211 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/10, allocations: 11.94 kB / 5.457 GB, free: 4.199 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/10, allocations: 0 / 5.457 GB, free: 4.199 MB / 1.167 GB Notification: Performance of sorting global known variables: time 2.049e-05/10, allocations: 83.28 kB / 5.457 GB, free: 4.117 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.21e-07/10, allocations: 0 / 5.457 GB, free: 4.117 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0003186/10, allocations: 51.98 kB / 5.457 GB, free: 4.066 MB / 1.167 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.0009427/10, allocations: 1.132 MB / 5.458 GB, free: 2.918 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0001313/10, allocations: 55.91 kB / 5.458 GB, free: 2.863 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/10, allocations: 4 kB / 5.458 GB, free: 2.859 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 3.335e-05/10, allocations: 31.92 kB / 5.458 GB, free: 2.828 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/10, allocations: 7.953 kB / 5.458 GB, free: 2.82 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/10, allocations: 0.8161 MB / 5.459 GB, free: 1.945 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/10, allocations: 0.6926 MB / 5.46 GB, free: 1.227 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 7.919e-05/10, allocations: 8.672 kB / 5.46 GB, free: 1.215 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/10, allocations: 15.5 kB / 5.46 GB, free: 1.199 MB / 1.167 GB Notification: Performance of SimCode: time 3.41e-07/10, allocations: 3.938 kB / 5.46 GB, free: 1.195 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7164/10.72, allocations: 10.86 MB / 5.47 GB, free: 420 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003057/10.72, allocations: 201.4 kB / 5.471 GB, free: 419.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.105/12.83, allocations: 0 / 5.471 GB, free: 419.7 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat does not exist to compare? outputFormat=mat