Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.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.Examples.AirDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck",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.0007057/0.0007057, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.004431/0.004431, allocations: 172 kB / 16.26 MB, free: 6.613 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.225/1.225, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00166/0.00166, allocations: 262.6 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8919/0.8919, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004589/0.0004589, allocations: 14.41 kB / 0.5988 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1415, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirDerivativeCheck): time 0.001172/0.1427, allocations: 1.047 MB / 0.6862 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4041/0.5468, allocations: 144.2 MB / 0.8271 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.522e-05/0.5469, allocations: 1.188 kB / 0.8271 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.192e-05/0.5469, allocations: 3.984 kB / 0.8271 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.264e-05/0.547, allocations: 16.38 kB / 0.8271 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007281/0.5478, allocations: 298 kB / 0.8274 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.847e-05/0.5479, allocations: 85.47 kB / 0.8275 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.612e-05/0.5479, allocations: 6.219 kB / 0.8275 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.83e-05/0.548, allocations: 32.78 kB / 0.8275 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.671e-05/0.5481, allocations: 36.44 kB / 0.8276 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.5481, allocations: 3.688 kB / 0.8276 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007433/0.5488, allocations: 495 kB / 0.828 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.443e-05/0.5489, allocations: 18.11 kB / 0.8281 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.715e-05/0.5489, allocations: 55.61 kB / 0.8281 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.5492, allocations: 185 kB / 0.8283 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.5492, allocations: 1.156 kB / 0.8283 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.542e-06/0.5493, allocations: 0 / 0.8283 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.5493, allocations: 0 / 0.8283 GB, free: 15.31 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003544/0.5496, allocations: 375.3 kB / 0.8286 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.5497, allocations: 12.58 kB / 0.8287 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.603e-05/0.5497, allocations: 36.75 kB / 0.8287 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003659/0.5501, allocations: 38.53 kB / 0.8287 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.665e-05/0.5502, allocations: 169.6 kB / 0.8289 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.5502, allocations: 10.47 kB / 0.8289 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.5502, allocations: 6 kB / 0.8289 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.5504, allocations: 81.22 kB / 0.829 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.972e-06/0.5504, allocations: 0 / 0.829 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.5504, allocations: 1.219 kB / 0.829 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.5504, allocations: 1.312 kB / 0.829 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.097e-05/0.5505, allocations: 45.11 kB / 0.829 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.5507, allocations: 199.3 kB / 0.8292 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.5509, allocations: 94.16 kB / 0.8293 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.985e-05/0.5509, allocations: 35.23 kB / 0.8293 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002008/0.5511, allocations: 177.2 kB / 0.8295 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.5512, allocations: 35.62 kB / 0.8295 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.5512, allocations: 0 / 0.8295 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19): time 0.001159/0.5523, allocations: 0.5546 MB / 0.8301 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.664e-05/0.5524, allocations: 52.78 kB / 0.8301 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.37e-05/0.5524, allocations: 100 kB / 0.8302 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.5524, allocations: 32.14 kB / 0.8303 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.684e-05/0.5525, allocations: 84.64 kB / 0.8303 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.606e-05/0.5525, allocations: 70 kB / 0.8304 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.5526, allocations: 21.16 kB / 0.8304 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.607e-05/0.5527, allocations: 321.1 kB / 0.8307 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.596e-05/0.5527, allocations: 39.59 kB / 0.8308 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.519e-05/0.5528, allocations: 65.66 kB / 0.8308 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.553, allocations: 125.1 kB / 0.831 GB, free: 13 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.553, allocations: 1.375 kB / 0.831 GB, free: 13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002087/0.5532, allocations: 161.5 kB / 0.8311 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.5532, allocations: 5.219 kB / 0.8311 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.5532, allocations: 2.031 kB / 0.8311 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.5532, allocations: 1.062 kB / 0.8311 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.5534, allocations: 35.2 kB / 0.8312 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.5534, allocations: 2.812 kB / 0.8312 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.603e-05/0.5535, allocations: 13.41 kB / 0.8312 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.5535, allocations: 8.75 kB / 0.8312 GB, free: 12.93 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.35e-05/0.5536, allocations: 123.4 kB / 0.8313 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.5536, allocations: 8.25 kB / 0.8313 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.5536, allocations: 20.11 kB / 0.8313 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.5536, allocations: 2 kB / 0.8313 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.5537, allocations: 0 / 0.8313 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.5537, allocations: 5.25 kB / 0.8313 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.5538, allocations: 189.6 kB / 0.8315 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.5538, allocations: 3.875 kB / 0.8315 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.554, allocations: 38.36 kB / 0.8316 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.554, allocations: 5.219 kB / 0.8316 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.554, allocations: 5.625 kB / 0.8316 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.554, allocations: 1.156 kB / 0.8316 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.554, allocations: 3.938 kB / 0.8316 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.5543, allocations: 210.5 kB / 0.8318 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.117e-05/0.5544, allocations: 94.94 kB / 0.8319 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.5544, allocations: 5.125 kB / 0.8319 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.5545, allocations: 8.641 kB / 0.8319 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-05/0.5546, allocations: 19.73 kB / 0.8319 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.5546, allocations: 4.938 kB / 0.8319 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.844e-05/0.5546, allocations: 80.25 kB / 0.832 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5546, allocations: 0 / 0.832 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002193/0.5549, allocations: 25.66 kB / 0.832 GB, free: 12.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,cpSym,cvSym) * 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 (19): * Single equations (assignments): 19 * 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.0004841/0.5553, allocations: 0.7541 MB / 0.8327 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001629/0.5555, allocations: 107.5 kB / 0.8328 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5555, allocations: 0 / 0.8328 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.303e-05/0.5556, allocations: 49.55 kB / 0.8329 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.5558, allocations: 25.3 kB / 0.8329 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.5575, allocations: 1.92 MB / 0.8348 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.5577, allocations: 0.7054 MB / 0.8355 GB, free: 9.344 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000125/0.5579, allocations: 17.64 kB / 0.8355 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.358e-05/0.5579, allocations: 23.16 kB / 0.8355 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of SimCode: time 4.41e-07/0.5579, allocations: 3.938 kB / 0.8355 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01104/0.569, allocations: 2.187 MB / 0.8377 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001627/0.5692, allocations: 196.5 kB / 0.8378 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.584/2.153, allocations: 0 / 0.8378 GB, free: 8.047 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe 2>&1)