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.001379/0.001379, allocations: 109.4 kB / 15.69 MB, free: 128 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.001713/0.001713, allocations: 187.3 kB / 16.62 MB, free: 6.582 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.535/1.535, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.785/1.785, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.0016/0.0016, allocations: 71.88 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2436, allocations: 114.6 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002594/0.2462, allocations: 1.264 MB / 0.7849 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.696/0.9422, allocations: 147 MB / 0.9284 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.119e-05/0.9423, allocations: 4 kB / 0.9284 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.697e-05/0.9424, allocations: 5.062 kB / 0.9284 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.214e-05/0.9425, allocations: 4.5 kB / 0.9284 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004278/0.9429, allocations: 97.59 kB / 0.9285 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.22e-05/0.943, allocations: 36.14 kB / 0.9286 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.267e-05/0.9431, allocations: 7.578 kB / 0.9286 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.972e-05/0.9431, allocations: 12.53 kB / 0.9286 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.767e-05/0.9432, allocations: 16.97 kB / 0.9286 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.9432, allocations: 6.562 kB / 0.9286 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002357/0.9434, allocations: 83.94 kB / 0.9287 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.511e-05/0.9435, allocations: 6.531 kB / 0.9287 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.66e-05/0.9435, allocations: 17.67 kB / 0.9287 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.9436, allocations: 63.08 kB / 0.9288 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.9437, allocations: 0.75 kB / 0.9288 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9437, allocations: 2.625 kB / 0.9288 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.9437, allocations: 0 / 0.9288 GB, free: 3.109 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.0005134/0.9442, allocations: 353 kB / 0.9291 GB, free: 18.75 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.9442, allocations: 11.88 kB / 0.9291 GB, free: 18.75 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.9443, allocations: 38.34 kB / 0.9292 GB, free: 18.71 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.9445, allocations: 14.69 kB / 0.9292 GB, free: 18.7 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.9446, allocations: 166.9 kB / 0.9293 GB, free: 18.5 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.9446, allocations: 8.688 kB / 0.9293 GB, free: 18.5 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.9446, allocations: 3.938 kB / 0.9293 GB, free: 18.5 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.9448, allocations: 53.98 kB / 0.9294 GB, free: 18.47 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.9448, allocations: 0 / 0.9294 GB, free: 18.47 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.9448, allocations: 4.5 kB / 0.9294 GB, free: 18.46 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.9448, allocations: 4 kB / 0.9294 GB, free: 18.46 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.418e-05/0.9449, allocations: 17.45 kB / 0.9294 GB, free: 18.46 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.945, allocations: 170 kB / 0.9296 GB, free: 18.27 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.065e-05/0.9451, allocations: 47.47 kB / 0.9296 GB, free: 18.25 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.475e-05/0.9451, allocations: 15.44 kB / 0.9296 GB, free: 18.24 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.9451, allocations: 4.672 kB / 0.9296 GB, free: 18.24 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.9452, allocations: 38.5 kB / 0.9297 GB, free: 18.19 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.9452, allocations: 0 / 0.9297 GB, free: 18.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.000702/0.9459, allocations: 369.9 kB / 0.93 GB, free: 17.93 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.9459, allocations: 56.11 kB / 0.9301 GB, free: 17.87 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.74e-05/0.946, allocations: 91.17 kB / 0.9302 GB, free: 17.77 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.9461, allocations: 32.17 kB / 0.9302 GB, free: 17.74 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.389e-05/0.9461, allocations: 84.27 kB / 0.9303 GB, free: 17.66 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/0.9461, allocations: 35.02 kB / 0.9303 GB, free: 17.63 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/0.9462, allocations: 29.11 kB / 0.9303 GB, free: 17.62 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.9463, allocations: 320 kB / 0.9306 GB, free: 17.3 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.409e-05/0.9464, allocations: 17.78 kB / 0.9307 GB, free: 17.3 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.734e-05/0.9464, allocations: 42.64 kB / 0.9307 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.454e-05/0.9465, allocations: 62.06 kB / 0.9308 GB, free: 17.27 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.9465, allocations: 4 kB / 0.9308 GB, free: 17.26 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001339/0.9466, allocations: 94.73 kB / 0.9309 GB, free: 17.22 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.9467, allocations: 7.312 kB / 0.9309 GB, free: 17.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.9467, allocations: 0 / 0.9309 GB, free: 17.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.9467, allocations: 4.688 kB / 0.9309 GB, free: 17.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.9468, allocations: 24.45 kB / 0.9309 GB, free: 17.22 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.9468, allocations: 3.891 kB / 0.9309 GB, free: 17.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.164e-05/0.9469, allocations: 1.406 kB / 0.9309 GB, free: 17.22 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.9469, allocations: 2.438 kB / 0.9309 GB, free: 17.22 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 8.403e-05/0.947, allocations: 125.4 kB / 0.931 GB, free: 17.09 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.947, allocations: 3.125 kB / 0.931 GB, free: 17.09 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.196e-05/0.947, allocations: 14.28 kB / 0.931 GB, free: 17.09 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.947, allocations: 2.094 kB / 0.931 GB, free: 17.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.947, allocations: 2.188 kB / 0.931 GB, free: 17.09 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.9471, allocations: 4.5 kB / 0.931 GB, free: 17.09 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.9472, allocations: 169.6 kB / 0.9312 GB, free: 16.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.9472, allocations: 0.75 kB / 0.9312 GB, free: 16.9 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.9473, allocations: 20.8 kB / 0.9312 GB, free: 16.9 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.9473, allocations: 0.8438 kB / 0.9312 GB, free: 16.9 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.9474, allocations: 9.281 kB / 0.9312 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.9474, allocations: 1.203 kB / 0.9312 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.9474, allocations: 2.156 kB / 0.9312 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.9476, allocations: 138.5 kB / 0.9314 GB, free: 16.82 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-05/0.9476, allocations: 86.38 kB / 0.9315 GB, free: 16.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.9477, allocations: 3.406 kB / 0.9315 GB, free: 16.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.094e-05/0.9477, allocations: 4.453 kB / 0.9315 GB, free: 16.72 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.472e-05/0.9478, allocations: 10.33 kB / 0.9315 GB, free: 16.72 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.9478, allocations: 6.75 kB / 0.9315 GB, free: 16.71 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.358e-05/0.9478, allocations: 79.81 kB / 0.9316 GB, free: 16.64 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9478, allocations: 0 / 0.9316 GB, free: 16.64 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001994/0.948, allocations: 21.41 kB / 0.9316 GB, free: 16.64 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.0004384/0.9485, allocations: 0.6679 MB / 0.9322 GB, free: 16.04 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.9486, allocations: 59.33 kB / 0.9323 GB, free: 16.04 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.9486, allocations: 0 / 0.9323 GB, free: 16.04 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.498e-05/0.9487, allocations: 29.06 kB / 0.9323 GB, free: 16.03 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.9489, allocations: 11.77 kB / 0.9323 GB, free: 16.03 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.9502, allocations: 1.451 MB / 0.9337 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.9505, allocations: 0.6907 MB / 0.9344 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.329e-05/0.9505, allocations: 9.328 kB / 0.9344 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.9506, allocations: 17.92 kB / 0.9344 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.9506, allocations: 3.938 kB / 0.9344 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01812/0.9687, allocations: 1.663 MB / 0.9361 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.591/8.559, allocations: 7.984 kB / 0.9361 GB, free: 13.7 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)