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/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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 108 kB / 15.6 MB, free: 132 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.002051/0.002051, allocations: 197.5 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.211/2.211, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003606/0.003606, allocations: 290.8 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.547/1.547, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003141/0.003141, allocations: 95.36 kB / 0.5953 GB, free: 27.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1836, allocations: 86.97 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.003654/0.1873, allocations: 1.275 MB / 0.6815 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.6134/0.8007, allocations: 147 MB / 0.8251 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.386e-05/0.8008, allocations: 0.6562 kB / 0.8251 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.365e-05/0.8009, allocations: 2.625 kB / 0.8251 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.76e-05/0.8009, allocations: 4.969 kB / 0.8251 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.8014, allocations: 105.2 kB / 0.8252 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.292e-05/0.8015, allocations: 30.25 kB / 0.8252 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.305e-05/0.8016, allocations: 6.953 kB / 0.8252 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.674e-05/0.8016, allocations: 13.56 kB / 0.8252 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.74e-05/0.8017, allocations: 15.42 kB / 0.8252 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.8017, allocations: 6 kB / 0.8253 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.802, allocations: 76.55 kB / 0.8253 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.614e-05/0.802, allocations: 5.781 kB / 0.8253 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.8021, allocations: 19.16 kB / 0.8253 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.8023, allocations: 66.67 kB / 0.8254 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.8023, allocations: 4 kB / 0.8254 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.214e-06/0.8023, allocations: 0.5 kB / 0.8254 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.8023, allocations: 0 / 0.8254 GB, free: 1.305 MB / 0.5606 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.0004813/0.8028, allocations: 351.1 kB / 0.8258 GB, free: 16.95 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.8028, allocations: 9.625 kB / 0.8258 GB, free: 16.95 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.014e-05/0.8029, allocations: 31.88 kB / 0.8258 GB, free: 16.91 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.8031, allocations: 12.5 kB / 0.8258 GB, free: 16.91 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.8032, allocations: 167.8 kB / 0.826 GB, free: 16.71 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.8032, allocations: 12.81 kB / 0.826 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.8033, allocations: 11.53 kB / 0.826 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.8034, allocations: 54.69 kB / 0.826 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.8034, allocations: 0.5 kB / 0.826 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.8035, allocations: 0.625 kB / 0.826 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.8035, allocations: 1.031 kB / 0.826 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.621e-05/0.8035, allocations: 17.53 kB / 0.8261 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001684/0.8037, allocations: 166.3 kB / 0.8262 GB, free: 16.47 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.978e-05/0.8038, allocations: 59.62 kB / 0.8263 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.231e-05/0.8038, allocations: 17.92 kB / 0.8263 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.8039, allocations: 1.188 kB / 0.8263 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.8039, allocations: 35.06 kB / 0.8263 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.133e-06/0.8039, allocations: 0.5625 kB / 0.8263 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0008097/0.8047, allocations: 364.8 kB / 0.8267 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.8048, allocations: 61.59 kB / 0.8267 GB, free: 16.06 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.284e-05/0.8048, allocations: 91.86 kB / 0.8268 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.8049, allocations: 30.39 kB / 0.8268 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.496e-05/0.8049, allocations: 80.14 kB / 0.8269 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.714e-05/0.8049, allocations: 36.45 kB / 0.827 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.805, allocations: 31.44 kB / 0.827 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.8051, allocations: 320 kB / 0.8273 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.865e-05/0.8051, allocations: 26.22 kB / 0.8273 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.713e-05/0.8052, allocations: 45.86 kB / 0.8274 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.727e-05/0.8053, allocations: 55.23 kB / 0.8274 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8053, allocations: 0 / 0.8274 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001409/0.8055, allocations: 100.6 kB / 0.8275 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.8055, allocations: 5.312 kB / 0.8275 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.8055, allocations: 1.125 kB / 0.8275 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.8055, allocations: 1.719 kB / 0.8275 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.8056, allocations: 23.86 kB / 0.8275 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.8056, allocations: 1.219 kB / 0.8275 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.606e-05/0.8057, allocations: 4.406 kB / 0.8275 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-06/0.8057, allocations: 6.719 kB / 0.8276 GB, free: 15.41 MB / 0.5762 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 8.571e-05/0.8058, allocations: 122.8 kB / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.8058, allocations: 3.625 kB / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.8059, allocations: 10.72 kB / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.8059, allocations: 2.312 kB / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.8059, allocations: 0 / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.8059, allocations: 6.625 kB / 0.8277 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.806, allocations: 175.8 kB / 0.8279 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.806, allocations: 0 / 0.8279 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.8062, allocations: 20.48 kB / 0.8279 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.8062, allocations: 0 / 0.8279 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-06/0.8062, allocations: 1.156 kB / 0.8279 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.8062, allocations: 1.188 kB / 0.8279 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.8062, allocations: 0 / 0.8279 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.8064, allocations: 145.8 kB / 0.828 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.038e-05/0.8065, allocations: 83.67 kB / 0.8281 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.8065, allocations: 4.688 kB / 0.8281 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.8066, allocations: 3.312 kB / 0.8281 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.819e-05/0.8066, allocations: 5.938 kB / 0.8281 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.8066, allocations: 5.531 kB / 0.8281 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.499e-05/0.8067, allocations: 78.39 kB / 0.8282 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8067, allocations: 0 / 0.8282 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002161/0.8069, allocations: 20.03 kB / 0.8282 GB, free: 14.84 MB / 0.5762 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.0004345/0.8074, allocations: 0.6735 MB / 0.8289 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001417/0.8075, allocations: 65.03 kB / 0.8289 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.8075, allocations: 0 / 0.8289 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 3.845e-05/0.8076, allocations: 30.52 kB / 0.829 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.8078, allocations: 11.06 kB / 0.829 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.8092, allocations: 1.45 MB / 0.8304 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.8095, allocations: 0.6874 MB / 0.8311 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.127e-05/0.8095, allocations: 10.36 kB / 0.8311 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.116e-05/0.8096, allocations: 21.66 kB / 0.8311 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/0.8096, allocations: 0 / 0.8311 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.8302, allocations: 1.654 MB / 0.8327 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/11.22, allocations: 22.36 kB / 0.8327 GB, free: 11.89 MB / 0.5762 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)