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.001546/0.001546, 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.00192/0.00192, allocations: 186.6 kB / 16.62 MB, free: 6.613 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.399/1.399, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.808/1.808, 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.00139/0.00139, allocations: 71.09 kB / 0.6718 GB, free: 26.37 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2209, allocations: 114.6 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002445/0.2234, allocations: 1.271 MB / 0.7849 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.6473/0.8708, allocations: 147 MB / 0.9284 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.229e-05/0.8709, allocations: 0 / 0.9284 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.187e-05/0.8709, allocations: 5.016 kB / 0.9284 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.815e-05/0.871, allocations: 0.6094 kB / 0.9284 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004449/0.8715, allocations: 97.08 kB / 0.9285 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.675e-05/0.8715, allocations: 39.45 kB / 0.9286 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.765e-05/0.8716, allocations: 8.031 kB / 0.9286 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.063e-05/0.8716, allocations: 11.59 kB / 0.9286 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.203e-05/0.8717, allocations: 18.91 kB / 0.9286 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.8717, allocations: 0 / 0.9286 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.872, allocations: 77.38 kB / 0.9287 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.561e-05/0.872, allocations: 11.25 kB / 0.9287 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.872, allocations: 11.09 kB / 0.9287 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.8722, allocations: 67.06 kB / 0.9288 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.8722, allocations: 1.219 kB / 0.9288 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.8722, allocations: 4 kB / 0.9288 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.8722, allocations: 0 / 0.9288 GB, free: 3.141 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.0005635/0.8728, allocations: 358.1 kB / 0.9291 GB, free: 18.78 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.8729, allocations: 11.94 kB / 0.9291 GB, free: 18.77 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.802e-05/0.8729, allocations: 38.83 kB / 0.9292 GB, free: 18.73 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001919/0.8731, allocations: 13.45 kB / 0.9292 GB, free: 18.73 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.8732, allocations: 169.6 kB / 0.9293 GB, free: 18.53 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.8732, allocations: 7.938 kB / 0.9293 GB, free: 18.52 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.8733, allocations: 9.031 kB / 0.9293 GB, free: 18.52 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.8734, allocations: 47.17 kB / 0.9294 GB, free: 18.49 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.8734, allocations: 0 / 0.9294 GB, free: 18.49 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.8734, allocations: 3.812 kB / 0.9294 GB, free: 18.49 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.8734, allocations: 5.094 kB / 0.9294 GB, free: 18.49 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.916e-05/0.8735, allocations: 16.59 kB / 0.9294 GB, free: 18.49 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001713/0.8737, allocations: 167.2 kB / 0.9296 GB, free: 18.3 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.815e-05/0.8738, allocations: 53.67 kB / 0.9296 GB, free: 18.27 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.977e-05/0.8738, allocations: 15.8 kB / 0.9296 GB, free: 18.26 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.8738, allocations: 1.203 kB / 0.9296 GB, free: 18.26 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.8739, allocations: 34.05 kB / 0.9297 GB, free: 18.22 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.8739, allocations: 0 / 0.9297 GB, free: 18.22 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.000737/0.8746, allocations: 372 kB / 0.93 GB, free: 17.96 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.8747, allocations: 58.78 kB / 0.9301 GB, free: 17.89 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.495e-05/0.8747, allocations: 94.75 kB / 0.9302 GB, free: 17.8 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.8748, allocations: 29.64 kB / 0.9302 GB, free: 17.77 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.8748, allocations: 80.14 kB / 0.9303 GB, free: 17.68 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.8749, allocations: 40.44 kB / 0.9303 GB, free: 17.66 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.8749, allocations: 26.92 kB / 0.9303 GB, free: 17.64 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.875, allocations: 319.9 kB / 0.9306 GB, free: 17.33 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.915e-05/0.8751, allocations: 20.5 kB / 0.9307 GB, free: 17.32 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.846e-05/0.8751, allocations: 34.81 kB / 0.9307 GB, free: 17.31 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.509e-05/0.8752, allocations: 65.25 kB / 0.9308 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.8752, allocations: 0 / 0.9308 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001371/0.8754, allocations: 94.58 kB / 0.9309 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.8754, allocations: 7.312 kB / 0.9309 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.8754, allocations: 0 / 0.9309 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.8754, allocations: 0.5156 kB / 0.9309 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.8756, allocations: 31.97 kB / 0.9309 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.8756, allocations: 4 kB / 0.9309 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.13e-05/0.8756, allocations: 2.688 kB / 0.9309 GB, free: 17.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.8756, allocations: 2.469 kB / 0.9309 GB, free: 17.25 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 7.995e-05/0.8757, allocations: 117.1 kB / 0.931 GB, free: 17.13 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.8757, allocations: 5.25 kB / 0.931 GB, free: 17.13 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.951e-05/0.8758, allocations: 12.27 kB / 0.931 GB, free: 17.12 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.8758, allocations: 1.203 kB / 0.931 GB, free: 17.12 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.8758, allocations: 6.25 kB / 0.931 GB, free: 17.12 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.8758, allocations: 4.75 kB / 0.931 GB, free: 17.12 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.876, allocations: 171.2 kB / 0.9312 GB, free: 16.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.876, allocations: 0.5625 kB / 0.9312 GB, free: 16.93 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.8761, allocations: 25.59 kB / 0.9312 GB, free: 16.92 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.8761, allocations: 0 / 0.9312 GB, free: 16.92 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.8761, allocations: 6.094 kB / 0.9312 GB, free: 16.92 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.8761, allocations: 0 / 0.9312 GB, free: 16.92 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8762, allocations: 0 / 0.9312 GB, free: 16.92 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.8764, allocations: 145.5 kB / 0.9314 GB, free: 16.85 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.382e-05/0.8765, allocations: 90.92 kB / 0.9315 GB, free: 16.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.8765, allocations: 3.938 kB / 0.9315 GB, free: 16.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.614e-05/0.8766, allocations: 4.172 kB / 0.9315 GB, free: 16.75 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.318e-05/0.8766, allocations: 9.234 kB / 0.9315 GB, free: 16.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.8766, allocations: 2.594 kB / 0.9315 GB, free: 16.74 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.765e-05/0.8767, allocations: 82.27 kB / 0.9316 GB, free: 16.67 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8767, allocations: 1.203 kB / 0.9316 GB, free: 16.67 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002297/0.8769, allocations: 20.84 kB / 0.9316 GB, free: 16.66 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.0004351/0.8774, allocations: 0.6598 MB / 0.9322 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.8775, allocations: 60.75 kB / 0.9323 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.8776, allocations: 0 / 0.9323 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.181e-05/0.8776, allocations: 34.89 kB / 0.9323 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.8779, allocations: 10.78 kB / 0.9323 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.8794, allocations: 1.447 MB / 0.9337 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.8797, allocations: 0.6943 MB / 0.9344 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.493e-05/0.8797, allocations: 10.59 kB / 0.9344 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.434e-05/0.8798, allocations: 17.59 kB / 0.9344 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of SimCode: time 2.01e-07/0.8798, allocations: 0 / 0.9344 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.9043, allocations: 1.666 MB / 0.9361 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.549/8.453, allocations: 7.094 kB / 0.9361 GB, free: 13.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)