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.00752/0.00752, allocations: 101 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00219/0.00219, allocations: 195.9 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002587/0.002587, allocations: 281.9 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.212/1.212, allocations: 178.5 MB / 0.5074 GB, free: 12.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00278/0.00278, allocations: 95.84 kB / 0.6943 GB, free: 15.21 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3926, allocations: 89.12 MB / 0.7813 GB, free: 1.172 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002073/0.3947, allocations: 1.281 MB / 0.7826 GB, free: 160 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1716/0.5664, allocations: 147 MB / 0.9261 GB, free: 3.922 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.685e-05/0.5665, allocations: 0 / 0.9261 GB, free: 3.922 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 1.98e-05/0.5665, allocations: 3.984 kB / 0.9261 GB, free: 3.918 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 4.945e-05/0.5666, allocations: 3.938 kB / 0.9261 GB, free: 3.914 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003832/0.567, allocations: 99.5 kB / 0.9262 GB, free: 3.816 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 7.245e-05/0.5671, allocations: 31.92 kB / 0.9263 GB, free: 3.785 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.626e-05/0.5671, allocations: 11.97 kB / 0.9263 GB, free: 3.773 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 4.747e-05/0.5672, allocations: 11.94 kB / 0.9263 GB, free: 3.762 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 5.65e-05/0.5672, allocations: 15.92 kB / 0.9263 GB, free: 3.746 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.5672, allocations: 0 / 0.9263 GB, free: 3.746 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002539/0.5675, allocations: 83.75 kB / 0.9264 GB, free: 3.664 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.5675, allocations: 4 kB / 0.9264 GB, free: 3.66 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.835e-05/0.5676, allocations: 19.92 kB / 0.9264 GB, free: 3.641 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.5677, allocations: 65.78 kB / 0.9265 GB, free: 3.582 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.5677, allocations: 4 kB / 0.9265 GB, free: 3.578 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5677, allocations: 0 / 0.9265 GB, free: 3.578 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.5677, allocations: 4 kB / 0.9265 GB, free: 3.574 MB / 0.6856 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.0004337/0.5682, allocations: 355.3 kB / 0.9268 GB, free: 3.18 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.5682, allocations: 8.031 kB / 0.9268 GB, free: 3.172 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.371e-05/0.5683, allocations: 34.75 kB / 0.9268 GB, free: 3.129 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.5685, allocations: 12.94 kB / 0.9269 GB, free: 3.117 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.5686, allocations: 168.1 kB / 0.927 GB, free: 2.914 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.5686, allocations: 12 kB / 0.927 GB, free: 2.902 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.5686, allocations: 7.891 kB / 0.927 GB, free: 2.895 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.5688, allocations: 53.62 kB / 0.9271 GB, free: 2.836 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.5688, allocations: 0 / 0.9271 GB, free: 2.836 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.5688, allocations: 4 kB / 0.9271 GB, free: 2.832 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.5688, allocations: 0 / 0.9271 GB, free: 2.832 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.587e-05/0.5689, allocations: 19.97 kB / 0.9271 GB, free: 2.812 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001941/0.5691, allocations: 165.5 kB / 0.9273 GB, free: 2.602 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.5692, allocations: 50.64 kB / 0.9273 GB, free: 2.543 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.353e-05/0.5692, allocations: 17.02 kB / 0.9273 GB, free: 2.523 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.5692, allocations: 7.922 kB / 0.9273 GB, free: 2.516 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.5693, allocations: 34.55 kB / 0.9274 GB, free: 2.473 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.5693, allocations: 4 kB / 0.9274 GB, free: 2.469 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.0007473/0.57, allocations: 370.1 kB / 0.9277 GB, free: 2.055 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.5701, allocations: 51.41 kB / 0.9278 GB, free: 1.992 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.641e-05/0.5702, allocations: 93.86 kB / 0.9279 GB, free: 1.891 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.5702, allocations: 29.7 kB / 0.9279 GB, free: 1.855 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 3.482e-05/0.5702, allocations: 80.14 kB / 0.928 GB, free: 1.773 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.5703, allocations: 47.62 kB / 0.928 GB, free: 1.727 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.881e-05/0.5703, allocations: 29.7 kB / 0.928 GB, free: 1.691 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.5705, allocations: 314.8 kB / 0.9283 GB, free: 1.375 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.5705, allocations: 28.11 kB / 0.9284 GB, free: 1.348 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.314e-05/0.5706, allocations: 33.7 kB / 0.9284 GB, free: 1.309 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.072e-05/0.5707, allocations: 58.2 kB / 0.9285 GB, free: 1.246 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.5707, allocations: 0 / 0.9285 GB, free: 1.246 MB / 0.6856 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001555/0.5709, allocations: 101.6 kB / 0.9286 GB, free: 1.141 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.5709, allocations: 8 kB / 0.9286 GB, free: 1.133 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.5709, allocations: 0 / 0.9286 GB, free: 1.133 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.5709, allocations: 0 / 0.9286 GB, free: 1.133 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.571, allocations: 24 kB / 0.9286 GB, free: 1.109 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.571, allocations: 3.984 kB / 0.9286 GB, free: 1.105 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.274e-05/0.5711, allocations: 4 kB / 0.9286 GB, free: 1.102 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.5711, allocations: 7.938 kB / 0.9286 GB, free: 1.094 MB / 0.6856 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.716e-05/0.5712, allocations: 121.7 kB / 0.9287 GB, free: 0.9648 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.5712, allocations: 3.953 kB / 0.9287 GB, free: 0.9609 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.5713, allocations: 15.97 kB / 0.9287 GB, free: 0.9492 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.5713, allocations: 0 / 0.9287 GB, free: 0.9492 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.5713, allocations: 0 / 0.9287 GB, free: 0.9492 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5713, allocations: 4 kB / 0.9287 GB, free: 0.9453 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.5714, allocations: 173.6 kB / 0.9289 GB, free: 0.7266 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5714, allocations: 0 / 0.9289 GB, free: 0.7266 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.5716, allocations: 19.98 kB / 0.9289 GB, free: 0.707 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.5716, allocations: 4 kB / 0.9289 GB, free: 0.7031 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.5716, allocations: 3.938 kB / 0.9289 GB, free: 0.6992 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.5716, allocations: 4 kB / 0.9289 GB, free: 0.6953 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5716, allocations: 0 / 0.9289 GB, free: 0.6953 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.5718, allocations: 145 kB / 0.9291 GB, free: 0.5352 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 8.2e-05/0.5719, allocations: 89.19 kB / 0.9292 GB, free: 440 kB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.572, allocations: 7.984 kB / 0.9292 GB, free: 432 kB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.187e-05/0.572, allocations: 0 / 0.9292 GB, free: 432 kB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.612e-05/0.5721, allocations: 7.984 kB / 0.9292 GB, free: 424 kB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.5721, allocations: 8 kB / 0.9292 GB, free: 416 kB / 0.6856 GB Notification: Performance of sorting global known variables: time 4.024e-05/0.5721, allocations: 79.22 kB / 0.9293 GB, free: 336 kB / 0.6856 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5721, allocations: 0 / 0.9293 GB, free: 336 kB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0002026/0.5723, allocations: 16 kB / 0.9293 GB, free: 320 kB / 0.6856 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.0005284/0.5729, allocations: 0.675 MB / 0.9299 GB, free: 15.61 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.0001362/0.573, allocations: 55.97 kB / 0.93 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.573, allocations: 3.938 kB / 0.93 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 4.903e-05/0.5731, allocations: 23.98 kB / 0.93 GB, free: 15.52 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.5733, allocations: 8 kB / 0.93 GB, free: 15.52 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.5748, allocations: 1.453 MB / 0.9314 GB, free: 13.98 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.5751, allocations: 0.6846 MB / 0.9321 GB, free: 13.27 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 5.429e-05/0.5752, allocations: 12.66 kB / 0.9321 GB, free: 13.26 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.5752, allocations: 19.44 kB / 0.9321 GB, free: 13.24 MB / 0.7012 GB Notification: Performance of SimCode: time 2.6e-07/0.5752, allocations: 0 / 0.9321 GB, free: 13.24 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.5984, allocations: 1.698 MB / 0.9338 GB, free: 11.69 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.681/8.279, allocations: 7.812 kB / 0.9338 GB, free: 11.68 MB / 0.7012 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)