Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_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.00122/0.00122, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001531/0.001531, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.2 MB / 239.9 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.545/2.545, allocations: 409.2 MB / 0.6838 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003919, allocations: 8 kB / 0.8375 GB, free: 6.586 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8342/0.8346, allocations: 146.8 MB / 0.9809 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001424/0.8361, allocations: 0.9801 MB / 0.9818 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.2403/1.076, allocations: 124.3 MB / 1.103 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.518e-05/1.077, allocations: 0 / 1.103 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.078e-05/1.077, allocations: 4 kB / 1.103 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.462e-05/1.077, allocations: 7.969 kB / 1.103 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/1.077, allocations: 87.67 kB / 1.103 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.355e-05/1.077, allocations: 19.97 kB / 1.103 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.803e-05/1.077, allocations: 0 / 1.103 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.782e-05/1.077, allocations: 15.94 kB / 1.103 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.132e-05/1.077, allocations: 15.97 kB / 1.103 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/1.077, allocations: 4 kB / 1.103 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005086/1.078, allocations: 83.81 kB / 1.103 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.97e-05/1.078, allocations: 11.92 kB / 1.103 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/1.078, allocations: 29.7 kB / 1.103 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003182/1.078, allocations: 46.2 kB / 1.104 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/1.078, allocations: 0 / 1.104 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.455e-06/1.078, allocations: 0 / 1.104 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.175e-05/1.078, allocations: 0 / 1.104 GB, free: 8.387 MB / 0.8575 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.0006325/1.079, allocations: 347.2 kB / 1.104 GB, free: 8 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 7.486e-05/1.079, allocations: 15.95 kB / 1.104 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.211e-05/1.079, allocations: 38.56 kB / 1.104 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/1.08, allocations: 4 kB / 1.104 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/1.08, allocations: 167.1 kB / 1.104 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/1.08, allocations: 7.953 kB / 1.104 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.439e-05/1.08, allocations: 7.938 kB / 1.104 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/1.08, allocations: 49.69 kB / 1.104 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/1.08, allocations: 0 / 1.104 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/1.08, allocations: 0 / 1.104 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/1.08, allocations: 0 / 1.104 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.95e-05/1.08, allocations: 23.98 kB / 1.104 GB, free: 7.637 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003034/1.08, allocations: 165.5 kB / 1.104 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/1.081, allocations: 50.5 kB / 1.104 GB, free: 7.367 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/1.081, allocations: 7.953 kB / 1.104 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.466e-05/1.081, allocations: 34.56 kB / 1.104 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/1.081, allocations: 0 / 1.104 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001061/1.082, allocations: 366.4 kB / 1.105 GB, free: 6.906 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/1.082, allocations: 59.33 kB / 1.105 GB, free: 6.836 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.487e-05/1.082, allocations: 93.86 kB / 1.105 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/1.082, allocations: 29.7 kB / 1.105 GB, free: 6.699 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.922e-05/1.082, allocations: 80.14 kB / 1.105 GB, free: 6.617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.781e-05/1.082, allocations: 39.36 kB / 1.105 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-06/1.082, allocations: 8.125 kB / 1.105 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001532/1.082, allocations: 314.8 kB / 1.105 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.424e-05/1.082, allocations: 15.98 kB / 1.105 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.973e-05/1.083, allocations: 41.64 kB / 1.105 GB, free: 6.191 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.456e-05/1.083, allocations: 28.52 kB / 1.105 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/1.083, allocations: 0 / 1.105 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002332/1.083, allocations: 97.62 kB / 1.106 GB, free: 6.062 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/1.083, allocations: 4 kB / 1.106 GB, free: 6.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/1.083, allocations: 4 kB / 1.106 GB, free: 6.055 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/1.083, allocations: 0 / 1.106 GB, free: 6.055 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/1.083, allocations: 27.92 kB / 1.106 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/1.083, allocations: 0 / 1.106 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.605e-05/1.083, allocations: 0 / 1.106 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/1.083, allocations: 8 kB / 1.106 GB, free: 6.02 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001202/1.083, allocations: 113.8 kB / 1.106 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/1.083, allocations: 15.84 kB / 1.106 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.501e-05/1.083, allocations: 7.969 kB / 1.106 GB, free: 5.879 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/1.083, allocations: 4 kB / 1.106 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/1.083, allocations: 3.938 kB / 1.106 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/1.084, allocations: 0 / 1.106 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/1.084, allocations: 177.6 kB / 1.106 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/1.084, allocations: 0 / 1.106 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/1.084, allocations: 24 kB / 1.106 GB, free: 5.625 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/1.084, allocations: 3.953 kB / 1.106 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/1.084, allocations: 3.984 kB / 1.106 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/1.084, allocations: 0 / 1.106 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.084, allocations: 4 kB / 1.106 GB, free: 5.613 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/1.084, allocations: 136 kB / 1.106 GB, free: 5.465 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.823e-05/1.085, allocations: 92.98 kB / 1.106 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/1.085, allocations: 3.953 kB / 1.106 GB, free: 5.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/1.085, allocations: 4 kB / 1.106 GB, free: 5.348 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.617e-05/1.085, allocations: 7.984 kB / 1.106 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/1.085, allocations: 4 kB / 1.106 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.991e-05/1.085, allocations: 75.28 kB / 1.106 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/1.085, allocations: 4.094 kB / 1.106 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004016/1.085, allocations: 16 kB / 1.106 GB, free: 5.242 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006314/1.086, allocations: 0.667 MB / 1.107 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001943/1.086, allocations: 52.02 kB / 1.107 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/1.086, allocations: 0 / 1.107 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.941e-05/1.086, allocations: 35.88 kB / 1.107 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/1.087, allocations: 13.31 kB / 1.107 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/1.088, allocations: 0.8009 MB / 1.108 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/1.088, allocations: 0.6926 MB / 1.108 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001242/1.089, allocations: 16.64 kB / 1.108 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.793e-05/1.089, allocations: 19.5 kB / 1.108 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of SimCode: time 3.4e-07/1.089, allocations: 0 / 1.108 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05723/1.146, allocations: 1.419 MB / 1.11 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003266/1.146, allocations: 203.8 kB / 1.11 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/3.55, allocations: 0 / 1.11 GB, free: 1.352 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat does not exist to compare? outputFormat=mat