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.001283/0.001283, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001296/0.001296, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.176/1.176, allocations: 205.1 MB / 222 MB, free: 4.762 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.655/1.655, allocations: 292.3 MB / 0.5484 GB, free: 13.65 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.001279/0.001279, allocations: 64.38 kB / 0.6709 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1618, allocations: 114.6 MB / 0.7828 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002025/0.1639, allocations: 1.34 MB / 0.7841 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.4303/0.5942, allocations: 144.7 MB / 0.9254 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.375e-05/0.5942, allocations: 0 / 0.9254 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.78e-05/0.5943, allocations: 4.031 kB / 0.9254 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.369e-05/0.5943, allocations: 3.281 kB / 0.9254 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.5946, allocations: 87.67 kB / 0.9255 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.091e-05/0.5947, allocations: 34.34 kB / 0.9255 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.149e-05/0.5947, allocations: 7.047 kB / 0.9255 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.1e-05/0.5947, allocations: 12.52 kB / 0.9255 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.323e-05/0.5948, allocations: 19.05 kB / 0.9256 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.5948, allocations: 2 kB / 0.9256 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.595, allocations: 72.44 kB / 0.9256 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.258e-05/0.595, allocations: 8.969 kB / 0.9256 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.922e-05/0.5951, allocations: 13.48 kB / 0.9257 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.5952, allocations: 68.61 kB / 0.9257 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.5952, allocations: 0 / 0.9257 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.61e-07/0.5952, allocations: 0 / 0.9257 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.5952, allocations: 1.094 kB / 0.9257 GB, free: 6.105 MB / 0.7325 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.00036/0.5956, allocations: 354.6 kB / 0.9261 GB, free: 21.75 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.5956, allocations: 8.812 kB / 0.9261 GB, free: 21.75 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.893e-05/0.5957, allocations: 40 kB / 0.9261 GB, free: 21.71 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.5958, allocations: 13.69 kB / 0.9261 GB, free: 21.7 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.911e-05/0.5959, allocations: 176.4 kB / 0.9263 GB, free: 21.5 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-06/0.5959, allocations: 5.875 kB / 0.9263 GB, free: 21.5 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.5959, allocations: 7.156 kB / 0.9263 GB, free: 21.5 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.725e-05/0.596, allocations: 48.27 kB / 0.9263 GB, free: 21.46 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.25e-06/0.5961, allocations: 3.938 kB / 0.9263 GB, free: 21.46 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.5961, allocations: 5 kB / 0.9264 GB, free: 21.46 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.5961, allocations: 2.609 kB / 0.9264 GB, free: 21.46 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.967e-05/0.5961, allocations: 15.31 kB / 0.9264 GB, free: 21.46 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.5963, allocations: 168.3 kB / 0.9265 GB, free: 21.27 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 6.871e-05/0.5963, allocations: 52.67 kB / 0.9266 GB, free: 21.24 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.25e-05/0.5964, allocations: 16.73 kB / 0.9266 GB, free: 21.23 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.5964, allocations: 0.9688 kB / 0.9266 GB, free: 21.23 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.5964, allocations: 39.28 kB / 0.9266 GB, free: 21.2 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 9.51e-07/0.5964, allocations: 0 / 0.9266 GB, free: 21.2 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.0005902/0.597, allocations: 371.4 kB / 0.927 GB, free: 20.94 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.597, allocations: 55.81 kB / 0.927 GB, free: 20.88 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.253e-05/0.5971, allocations: 97.73 kB / 0.9271 GB, free: 20.78 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.5971, allocations: 27.27 kB / 0.9272 GB, free: 20.75 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 1.902e-05/0.5971, allocations: 80.14 kB / 0.9272 GB, free: 20.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.5972, allocations: 41.62 kB / 0.9273 GB, free: 20.64 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-05/0.5972, allocations: 25.66 kB / 0.9273 GB, free: 20.62 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 7.976e-05/0.5973, allocations: 326 kB / 0.9276 GB, free: 20.3 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.995e-05/0.5973, allocations: 17.91 kB / 0.9276 GB, free: 20.3 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.517e-05/0.5974, allocations: 36.31 kB / 0.9277 GB, free: 20.29 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.879e-05/0.5974, allocations: 58.91 kB / 0.9277 GB, free: 20.27 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/0.5974, allocations: 0 / 0.9277 GB, free: 20.27 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001141/0.5976, allocations: 100.7 kB / 0.9278 GB, free: 20.23 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.5976, allocations: 5.125 kB / 0.9278 GB, free: 20.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.5976, allocations: 0.8125 kB / 0.9278 GB, free: 20.23 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/0.5976, allocations: 4.875 kB / 0.9278 GB, free: 20.23 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.65e-05/0.5977, allocations: 21.53 kB / 0.9278 GB, free: 20.23 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.5977, allocations: 1.219 kB / 0.9278 GB, free: 20.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.884e-05/0.5977, allocations: 4.594 kB / 0.9279 GB, free: 20.23 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.5978, allocations: 4.844 kB / 0.9279 GB, free: 20.23 MB / 0.7481 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 5.902e-05/0.5978, allocations: 126.5 kB / 0.928 GB, free: 20.11 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.322e-05/0.5978, allocations: 2.688 kB / 0.928 GB, free: 20.11 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.5979, allocations: 11.78 kB / 0.928 GB, free: 20.11 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.5979, allocations: 1.438 kB / 0.928 GB, free: 20.11 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.5979, allocations: 5.156 kB / 0.928 GB, free: 20.11 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.5979, allocations: 0 / 0.928 GB, free: 20.11 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.897e-05/0.598, allocations: 176.8 kB / 0.9282 GB, free: 19.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.598, allocations: 0 / 0.9282 GB, free: 19.91 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.5981, allocations: 28.69 kB / 0.9282 GB, free: 19.91 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5981, allocations: 1.031 kB / 0.9282 GB, free: 19.91 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.5981, allocations: 1.094 kB / 0.9282 GB, free: 19.91 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5981, allocations: 0.8125 kB / 0.9282 GB, free: 19.91 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.5981, allocations: 3.938 kB / 0.9282 GB, free: 19.91 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/0.5983, allocations: 137.7 kB / 0.9283 GB, free: 19.84 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.5984, allocations: 87.81 kB / 0.9284 GB, free: 19.74 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.5984, allocations: 4.25 kB / 0.9284 GB, free: 19.74 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.763e-05/0.5985, allocations: 10.58 kB / 0.9284 GB, free: 19.74 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.5985, allocations: 3.156 kB / 0.9284 GB, free: 19.74 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.5985, allocations: 5.938 kB / 0.9284 GB, free: 19.74 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 2.455e-05/0.5985, allocations: 76.5 kB / 0.9285 GB, free: 19.66 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5985, allocations: 0 / 0.9285 GB, free: 19.66 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0001824/0.5987, allocations: 27.11 kB / 0.9285 GB, free: 19.66 MB / 0.7481 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.0003354/0.5991, allocations: 0.6641 MB / 0.9292 GB, free: 19.07 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000103/0.5992, allocations: 54.3 kB / 0.9292 GB, free: 19.07 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5992, allocations: 1 kB / 0.9292 GB, free: 19.07 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 3.424e-05/0.5992, allocations: 31.83 kB / 0.9293 GB, free: 19.07 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.5994, allocations: 10.91 kB / 0.9293 GB, free: 19.06 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.6004, allocations: 1.455 MB / 0.9307 GB, free: 17.82 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001752/0.6006, allocations: 0.6866 MB / 0.9314 GB, free: 17.13 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.065e-05/0.6007, allocations: 8.359 kB / 0.9314 GB, free: 17.12 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.266e-05/0.6007, allocations: 18.5 kB / 0.9314 GB, free: 17.12 MB / 0.7481 GB Notification: Performance of SimCode: time 6.11e-07/0.6007, allocations: 1.031 kB / 0.9314 GB, free: 17.12 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9121/1.513, allocations: 1.522 MB / 0.9329 GB, free: 16.88 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/1.513, allocations: 224 kB / 0.9331 GB, free: 16.62 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/3.572, allocations: 0 / 0.9331 GB, free: 16.62 MB / 0.7481 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)