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.0007249/0.000725, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.004172/0.004172, allocations: 169.4 kB / 16.26 MB, free: 6.648 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.261/1.261, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001699/0.001699, allocations: 270.8 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8906/0.8906, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003974/0.0003973, allocations: 16.3 kB / 0.5988 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.134, allocations: 88.55 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001354/0.1354, allocations: 0.9965 MB / 0.6862 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3997/0.5351, allocations: 143.1 MB / 0.826 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.382e-05/0.5352, allocations: 0 / 0.826 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.5352, allocations: 0 / 0.826 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.411e-05/0.5353, allocations: 3.453 kB / 0.826 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.5356, allocations: 82.77 kB / 0.8261 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.301e-05/0.5356, allocations: 34.3 kB / 0.8261 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 2.798e-05/0.5357, allocations: 2.5 kB / 0.8261 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.546e-05/0.5357, allocations: 14.5 kB / 0.8261 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.643e-05/0.5357, allocations: 20.62 kB / 0.8262 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/0.5358, allocations: 1.594 kB / 0.8262 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.536, allocations: 76.09 kB / 0.8262 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.536, allocations: 12.5 kB / 0.8262 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.536, allocations: 43.36 kB / 0.8263 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.5362, allocations: 64.19 kB / 0.8263 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.5362, allocations: 0 / 0.8263 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5362, allocations: 0 / 0.8263 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.246e-06/0.5362, allocations: 0 / 0.8263 GB, free: 15.77 MB / 0.5606 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.0002978/0.5365, allocations: 344.6 kB / 0.8267 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.5365, allocations: 9.156 kB / 0.8267 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.433e-05/0.5366, allocations: 36.11 kB / 0.8267 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.5367, allocations: 13.39 kB / 0.8267 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.071e-05/0.5368, allocations: 169.6 kB / 0.8269 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.5369, allocations: 8.75 kB / 0.8269 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.885e-05/0.5369, allocations: 8.062 kB / 0.8269 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.919e-05/0.537, allocations: 48.28 kB / 0.8269 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.29e-06/0.537, allocations: 4 kB / 0.827 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.537, allocations: 1 kB / 0.827 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.537, allocations: 5.062 kB / 0.827 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.108e-05/0.5371, allocations: 16.61 kB / 0.827 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.5372, allocations: 171.5 kB / 0.8271 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.471e-05/0.5373, allocations: 46.97 kB / 0.8272 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.641e-05/0.5373, allocations: 18.64 kB / 0.8272 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.195e-06/0.5374, allocations: 1.156 kB / 0.8272 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.5374, allocations: 36.53 kB / 0.8272 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.5374, allocations: 3.938 kB / 0.8272 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0006168/0.538, allocations: 372.3 kB / 0.8276 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.538, allocations: 52.81 kB / 0.8276 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.134e-05/0.5381, allocations: 98.27 kB / 0.8277 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.5381, allocations: 27.8 kB / 0.8278 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.306e-05/0.5382, allocations: 84.08 kB / 0.8278 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.5382, allocations: 42.42 kB / 0.8279 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.5382, allocations: 21.73 kB / 0.8279 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.096e-05/0.5383, allocations: 319.3 kB / 0.8282 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.179e-05/0.5384, allocations: 19.33 kB / 0.8282 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-05/0.5384, allocations: 34.55 kB / 0.8283 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.936e-05/0.5385, allocations: 63.95 kB / 0.8283 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.5385, allocations: 0 / 0.8283 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001242/0.5386, allocations: 98.47 kB / 0.8284 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.5387, allocations: 13.11 kB / 0.8284 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.5387, allocations: 1.125 kB / 0.8284 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/0.5387, allocations: 1.219 kB / 0.8284 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.5388, allocations: 18.31 kB / 0.8284 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.5388, allocations: 0 / 0.8284 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.067e-05/0.5388, allocations: 1.875 kB / 0.8285 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.5389, allocations: 6.844 kB / 0.8285 GB, free: 13.79 MB / 0.5606 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.101e-05/0.5389, allocations: 126.1 kB / 0.8286 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.237e-05/0.539, allocations: 7.219 kB / 0.8286 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.539, allocations: 11.22 kB / 0.8286 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.539, allocations: 1.125 kB / 0.8286 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.539, allocations: 1.031 kB / 0.8286 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.539, allocations: 7.625 kB / 0.8286 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.5391, allocations: 174.5 kB / 0.8288 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5391, allocations: 0 / 0.8288 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.5392, allocations: 22.05 kB / 0.8288 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.5393, allocations: 5.031 kB / 0.8288 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.5393, allocations: 1.094 kB / 0.8288 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.5393, allocations: 0 / 0.8288 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.5393, allocations: 1.062 kB / 0.8288 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/0.5395, allocations: 136.3 kB / 0.8289 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.5395, allocations: 84.11 kB / 0.829 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.5395, allocations: 5.688 kB / 0.829 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.357e-05/0.5396, allocations: 2.062 kB / 0.829 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.567e-05/0.5397, allocations: 15.2 kB / 0.829 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.5397, allocations: 5.969 kB / 0.829 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.556e-05/0.5397, allocations: 76.94 kB / 0.8291 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5397, allocations: 0 / 0.8291 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001876/0.5399, allocations: 20 kB / 0.8291 GB, free: 13.18 MB / 0.5606 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.0004085/0.5403, allocations: 0.6777 MB / 0.8298 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001015/0.5404, allocations: 55.03 kB / 0.8298 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.5404, allocations: 3.938 kB / 0.8298 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/0.5405, allocations: 30.98 kB / 0.8299 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.5406, allocations: 9.844 kB / 0.8299 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.5418, allocations: 1.498 MB / 0.8313 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001983/0.542, allocations: 0.6926 MB / 0.832 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.067e-05/0.5421, allocations: 12.77 kB / 0.832 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.5421, allocations: 15.06 kB / 0.8321 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of SimCode: time 3.21e-07/0.5421, allocations: 0 / 0.8321 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2463/0.7884, allocations: 1.474 MB / 0.8335 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002368/0.7887, allocations: 236.9 kB / 0.8337 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.573/2.362, allocations: 0 / 0.8337 GB, free: 9.578 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)