Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 198.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.717/1.717, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 66.48 kB / 0.6716 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2984, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002926/0.3014, allocations: 1.276 MB / 0.7847 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.717/1.018, allocations: 147 MB / 0.9283 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.571e-05/1.019, allocations: 0 / 0.9283 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.405e-05/1.019, allocations: 5.297 kB / 0.9283 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.649e-05/1.019, allocations: 4.594 kB / 0.9283 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/1.019, allocations: 98.52 kB / 0.9284 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.305e-05/1.019, allocations: 27.97 kB / 0.9284 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.707e-05/1.019, allocations: 9.812 kB / 0.9284 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.992e-05/1.019, allocations: 16.06 kB / 0.9284 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.796e-05/1.02, allocations: 20.17 kB / 0.9284 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/1.02, allocations: 2.625 kB / 0.9284 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003115/1.02, allocations: 73.52 kB / 0.9285 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.364e-05/1.02, allocations: 8.656 kB / 0.9285 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.332e-05/1.02, allocations: 23.09 kB / 0.9285 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002098/1.02, allocations: 64.8 kB / 0.9286 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/1.02, allocations: 1.859 kB / 0.9286 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.665e-06/1.02, allocations: 0 / 0.9286 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.484e-06/1.02, allocations: 0 / 0.9286 GB, free: 3.086 MB / 0.7169 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.000927/1.021, allocations: 356.2 kB / 0.9289 GB, free: 18.72 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/1.021, allocations: 9.078 kB / 0.929 GB, free: 18.72 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.299e-05/1.021, allocations: 37.19 kB / 0.929 GB, free: 18.68 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002513/1.022, allocations: 15.16 kB / 0.929 GB, free: 18.68 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/1.022, allocations: 166.2 kB / 0.9292 GB, free: 18.48 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/1.022, allocations: 6.562 kB / 0.9292 GB, free: 18.48 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/1.022, allocations: 6.594 kB / 0.9292 GB, free: 18.48 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/1.022, allocations: 56.73 kB / 0.9292 GB, free: 18.44 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/1.022, allocations: 0 / 0.9292 GB, free: 18.44 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/1.022, allocations: 4 kB / 0.9292 GB, free: 18.44 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/1.022, allocations: 0 / 0.9292 GB, free: 18.44 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.094e-05/1.022, allocations: 22.16 kB / 0.9293 GB, free: 18.43 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002073/1.022, allocations: 169.9 kB / 0.9294 GB, free: 18.24 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 9.212e-05/1.022, allocations: 47.98 kB / 0.9295 GB, free: 18.22 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.905e-05/1.022, allocations: 14.47 kB / 0.9295 GB, free: 18.21 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/1.022, allocations: 3.375 kB / 0.9295 GB, free: 18.21 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/1.023, allocations: 38.5 kB / 0.9295 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.685e-06/1.023, allocations: 0 / 0.9295 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0007985/1.023, allocations: 378.1 kB / 0.9299 GB, free: 17.9 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/1.023, allocations: 54.28 kB / 0.9299 GB, free: 17.84 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.04e-05/1.023, allocations: 91.31 kB / 0.93 GB, free: 17.74 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/1.023, allocations: 36.39 kB / 0.93 GB, free: 17.71 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.12e-05/1.024, allocations: 80.14 kB / 0.9301 GB, free: 17.62 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/1.024, allocations: 38.62 kB / 0.9302 GB, free: 17.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/1.024, allocations: 27.72 kB / 0.9302 GB, free: 17.59 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001591/1.024, allocations: 320.4 kB / 0.9305 GB, free: 17.27 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.012e-05/1.024, allocations: 18.38 kB / 0.9305 GB, free: 17.27 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.384e-05/1.024, allocations: 37.16 kB / 0.9305 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.902e-05/1.024, allocations: 63.25 kB / 0.9306 GB, free: 17.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/1.024, allocations: 0 / 0.9306 GB, free: 17.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001543/1.024, allocations: 97.52 kB / 0.9307 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/1.024, allocations: 4.906 kB / 0.9307 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/1.024, allocations: 7.719 kB / 0.9307 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/1.024, allocations: 0 / 0.9307 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/1.024, allocations: 23.53 kB / 0.9307 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/1.024, allocations: 1.922 kB / 0.9307 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.326e-05/1.024, allocations: 1.031 kB / 0.9307 GB, free: 17.19 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/1.024, allocations: 4.016 kB / 0.9307 GB, free: 17.19 MB / 0.7325 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.243e-05/1.025, allocations: 122.5 kB / 0.9309 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/1.025, allocations: 3 kB / 0.9309 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/1.025, allocations: 17.14 kB / 0.9309 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/1.025, allocations: 0.9688 kB / 0.9309 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/1.025, allocations: 0 / 0.9309 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/1.025, allocations: 1.516 kB / 0.9309 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/1.025, allocations: 172.9 kB / 0.931 GB, free: 16.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/1.025, allocations: 3.312 kB / 0.931 GB, free: 16.87 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/1.025, allocations: 22.98 kB / 0.9311 GB, free: 16.87 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/1.025, allocations: 5.094 kB / 0.9311 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/1.025, allocations: 1.875 kB / 0.9311 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/1.025, allocations: 2.406 kB / 0.9311 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.025, allocations: 0 / 0.9311 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002464/1.025, allocations: 141.4 kB / 0.9312 GB, free: 16.79 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.601e-05/1.025, allocations: 83.88 kB / 0.9313 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/1.025, allocations: 6.656 kB / 0.9313 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.641e-05/1.025, allocations: 3.953 kB / 0.9313 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.095e-05/1.025, allocations: 10.78 kB / 0.9313 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/1.026, allocations: 5.125 kB / 0.9313 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.535e-05/1.026, allocations: 77.23 kB / 0.9314 GB, free: 16.61 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/1.026, allocations: 3.938 kB / 0.9314 GB, free: 16.61 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002078/1.026, allocations: 21.38 kB / 0.9314 GB, free: 16.61 MB / 0.7325 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004889/1.026, allocations: 0.666 MB / 0.9321 GB, free: 16.01 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001429/1.026, allocations: 68.89 kB / 0.9321 GB, free: 16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.026, allocations: 4.719 kB / 0.9321 GB, free: 16 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.917e-05/1.026, allocations: 27.61 kB / 0.9322 GB, free: 16 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/1.027, allocations: 10.12 kB / 0.9322 GB, free: 16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/1.028, allocations: 1.445 MB / 0.9336 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/1.028, allocations: 0.6918 MB / 0.9343 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.349e-05/1.028, allocations: 9.812 kB / 0.9343 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/1.029, allocations: 18.33 kB / 0.9343 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of SimCode: time 9.92e-07/1.029, allocations: 2.781 kB / 0.9343 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/1.049, allocations: 1.645 MB / 0.9359 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/8.681, allocations: 7.156 kB / 0.9359 GB, free: 13.66 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)