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.304/2.304, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.0014/0.0014, allocations: 184.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 221.3 MB / 0.7915 GB, free: 5.461 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.001022/0.001021, allocations: 95.47 kB / 0.9318 GB, free: 5.777 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.222e-05/4.246e-05, allocations: 8 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2636, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 10.18/10.45, allocations: 4.189 GB / 5.408 GB, free: 383.7 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/10.45, allocations: 75.95 kB / 5.408 GB, free: 383.6 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.06573/10.51, allocations: 36.6 MB / 5.444 GB, free: 346.5 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.082e-06/10.51, allocations: 4 kB / 5.444 GB, free: 346.5 MB / 1.167 GB Notification: Performance of Transformations before backend: time 6.242e-06/10.51, allocations: 0 / 5.444 GB, free: 346.5 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.0002702/10.51, allocations: 342.5 kB / 5.444 GB, free: 346.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/10.51, allocations: 12.03 kB / 5.444 GB, free: 346.1 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.738e-05/10.51, allocations: 34.56 kB / 5.444 GB, free: 346.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/10.51, allocations: 12.77 kB / 5.444 GB, free: 346.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.166e-05/10.51, allocations: 163 kB / 5.444 GB, free: 345.9 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/10.51, allocations: 4 kB / 5.444 GB, free: 345.9 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/10.51, allocations: 11.91 kB / 5.444 GB, free: 345.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/10.51, allocations: 61.61 kB / 5.444 GB, free: 345.8 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/10.51, allocations: 0 / 5.444 GB, free: 345.8 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/10.51, allocations: 8 kB / 5.444 GB, free: 345.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/10.51, allocations: 0 / 5.444 GB, free: 345.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.584e-05/10.51, allocations: 15.98 kB / 5.444 GB, free: 345.8 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001421/10.51, allocations: 157.7 kB / 5.445 GB, free: 345.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 6.792e-05/10.51, allocations: 50.56 kB / 5.445 GB, free: 345.5 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.469e-05/10.51, allocations: 24.8 kB / 5.445 GB, free: 345.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/10.51, allocations: 0 / 5.445 GB, free: 345.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/10.51, allocations: 42.45 kB / 5.445 GB, free: 345.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/10.51, allocations: 4 kB / 5.445 GB, free: 345.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=11): time 0.0005999/10.51, allocations: 350.3 kB / 5.445 GB, free: 345 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/10.51, allocations: 59.41 kB / 5.445 GB, free: 344.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.042e-05/10.51, allocations: 89 kB / 5.445 GB, free: 344.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/10.51, allocations: 25.7 kB / 5.445 GB, free: 344.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 1.539e-05/10.51, allocations: 84.14 kB / 5.445 GB, free: 344.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/10.51, allocations: 39.45 kB / 5.445 GB, free: 344.7 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/10.51, allocations: 0 / 5.445 GB, free: 344.7 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 4.725e-05/10.51, allocations: 314.8 kB / 5.446 GB, free: 344.4 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.878e-05/10.51, allocations: 16 kB / 5.446 GB, free: 344.4 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/10.51, allocations: 47.83 kB / 5.446 GB, free: 344.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.865e-05/10.51, allocations: 19.94 kB / 5.446 GB, free: 344.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/10.51, allocations: 0 / 5.446 GB, free: 344.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001072/10.51, allocations: 98 kB / 5.446 GB, free: 344.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/10.51, allocations: 8 kB / 5.446 GB, free: 344.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/10.51, allocations: 0 / 5.446 GB, free: 344.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/10.51, allocations: 0 / 5.446 GB, free: 344.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/10.51, allocations: 31.86 kB / 5.446 GB, free: 344.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/10.51, allocations: 4.016 kB / 5.446 GB, free: 344.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.201e-05/10.51, allocations: 7.984 kB / 5.446 GB, free: 344.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/10.51, allocations: 11.98 kB / 5.446 GB, free: 344.1 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 () * 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.109e-05/10.51, allocations: 109 kB / 5.446 GB, free: 344 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.377e-05/10.51, allocations: 7.859 kB / 5.446 GB, free: 344 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.71e-05/10.51, allocations: 16.09 kB / 5.446 GB, free: 344 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/10.51, allocations: 0 / 5.446 GB, free: 344 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/10.51, allocations: 0 / 5.446 GB, free: 344 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/10.51, allocations: 0 / 5.446 GB, free: 344 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.968e-05/10.51, allocations: 173.6 kB / 5.446 GB, free: 343.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/10.51, allocations: 4 kB / 5.446 GB, free: 343.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/10.51, allocations: 23.92 kB / 5.446 GB, free: 343.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/10.51, allocations: 0 / 5.446 GB, free: 343.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/10.51, allocations: 11.95 kB / 5.446 GB, free: 343.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/10.51, allocations: 0 / 5.446 GB, free: 343.7 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/10.51, allocations: 0 / 5.446 GB, free: 343.7 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001698/10.51, allocations: 129 kB / 5.446 GB, free: 343.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.61e-05/10.51, allocations: 81.11 kB / 5.446 GB, free: 343.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/10.51, allocations: 4.031 kB / 5.446 GB, free: 343.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.568e-05/10.51, allocations: 15.95 kB / 5.446 GB, free: 343.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.492e-05/10.51, allocations: 7.938 kB / 5.446 GB, free: 343.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/10.51, allocations: 3.984 kB / 5.446 GB, free: 343.5 MB / 1.167 GB Notification: Performance of sorting global known variables: time 1.892e-05/10.52, allocations: 79.28 kB / 5.447 GB, free: 343.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.4e-07/10.52, allocations: 0 / 5.447 GB, free: 343.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0003022/10.52, allocations: 48 kB / 5.447 GB, free: 343.3 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 () * 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.0008659/10.52, allocations: 1.127 MB / 5.448 GB, free: 342.2 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0001096/10.52, allocations: 59.94 kB / 5.448 GB, free: 342.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/10.52, allocations: 0 / 5.448 GB, free: 342.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 2.935e-05/10.52, allocations: 27.94 kB / 5.448 GB, free: 342.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/10.52, allocations: 11.95 kB / 5.448 GB, free: 342.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004983/10.52, allocations: 328.4 kB / 5.448 GB, free: 341.7 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/10.52, allocations: 0.6887 MB / 5.449 GB, free: 341 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 6.773e-05/10.52, allocations: 12.66 kB / 5.449 GB, free: 341 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.135e-05/10.52, allocations: 15.44 kB / 5.449 GB, free: 341 MB / 1.167 GB Notification: Performance of SimCode: time 5.81e-07/10.52, allocations: 0 / 5.449 GB, free: 341 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/10.54, allocations: 12.67 MB / 5.461 GB, free: 328.5 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/10.54, allocations: 180 kB / 5.461 GB, free: 328.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/12.3, allocations: 0 / 5.461 GB, free: 328.2 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