Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_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.001772/0.001772, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002396/0.002396, allocations: 193 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.165/2.165, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.417/3.417, allocations: 461.9 MB / 0.7343 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 60.62 kB / 0.8987 GB, free: 37.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3969, allocations: 157.4 MB / 1.052 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002083/0.399, allocations: 1.403 MB / 1.054 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.158/0.5571, allocations: 145.9 MB / 1.196 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.483e-05/0.5572, allocations: 0 / 1.196 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 6.368e-05/0.5573, allocations: 3.984 kB / 1.196 GB, free: 4.738 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.5575, allocations: 15.92 kB / 1.196 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002008/0.5595, allocations: 298.9 kB / 1.197 GB, free: 4.43 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.5598, allocations: 71.75 kB / 1.197 GB, free: 4.359 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.001e-05/0.5598, allocations: 0 / 1.197 GB, free: 4.359 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.224e-05/0.5599, allocations: 35.86 kB / 1.197 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.5601, allocations: 35.89 kB / 1.197 GB, free: 4.289 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.5601, allocations: 4 kB / 1.197 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001503/0.5617, allocations: 434.8 kB / 1.197 GB, free: 3.859 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.5618, allocations: 15.97 kB / 1.197 GB, free: 3.844 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.786e-05/0.5618, allocations: 27.86 kB / 1.197 GB, free: 3.816 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006133/0.5625, allocations: 187.8 kB / 1.197 GB, free: 3.633 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.5625, allocations: 4 kB / 1.197 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5.661e-06/0.5625, allocations: 0 / 1.197 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.548e-05/0.5626, allocations: 3.938 kB / 1.197 GB, free: 3.625 MB / 0.9512 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.000645/0.5632, allocations: 387.5 kB / 1.198 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.5633, allocations: 8.625 kB / 1.198 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.681e-05/0.5634, allocations: 42.73 kB / 1.198 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007112/0.5641, allocations: 40.8 kB / 1.198 GB, free: 3.102 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.5643, allocations: 168.1 kB / 1.198 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.5643, allocations: 4 kB / 1.198 GB, free: 2.895 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.336e-05/0.5644, allocations: 11.91 kB / 1.198 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002551/0.5647, allocations: 85.58 kB / 1.198 GB, free: 2.793 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.5647, allocations: 7.938 kB / 1.198 GB, free: 2.785 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.5647, allocations: 4 kB / 1.198 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.5647, allocations: 0 / 1.198 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.5649, allocations: 51.89 kB / 1.198 GB, free: 2.73 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002971/0.5652, allocations: 185.6 kB / 1.198 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.5655, allocations: 94.62 kB / 1.198 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.858e-05/0.5656, allocations: 32.84 kB / 1.198 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003323/0.5659, allocations: 174.2 kB / 1.199 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.566, allocations: 34.56 kB / 1.199 GB, free: 2.113 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 2.194e-06/0.566, allocations: 0 / 1.199 GB, free: 2.113 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.002088/0.5681, allocations: 0.5466 MB / 1.199 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.5682, allocations: 55.41 kB / 1.199 GB, free: 1.449 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.5683, allocations: 101.7 kB / 1.199 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.704e-05/0.5683, allocations: 29.7 kB / 1.199 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.285e-05/0.5684, allocations: 84.64 kB / 1.199 GB, free: 1.219 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.395e-05/0.5685, allocations: 71 kB / 1.199 GB, free: 1.148 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.312e-05/0.5686, allocations: 41.7 kB / 1.2 GB, free: 1.102 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.5688, allocations: 314.8 kB / 1.2 GB, free: 0.7852 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.5689, allocations: 39.97 kB / 1.2 GB, free: 0.7461 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.5691, allocations: 65.44 kB / 1.2 GB, free: 0.6719 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.5694, allocations: 119.4 kB / 1.2 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.5694, allocations: 0 / 1.2 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003813/0.5698, allocations: 153.5 kB / 1.2 GB, free: 396 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.5698, allocations: 8 kB / 1.2 GB, free: 388 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.5698, allocations: 0 / 1.2 GB, free: 388 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.5699, allocations: 0 / 1.2 GB, free: 388 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.5702, allocations: 39.92 kB / 1.2 GB, free: 348 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.077e-05/0.5703, allocations: 12.08 kB / 1.2 GB, free: 336 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.5704, allocations: 7.938 kB / 1.2 GB, free: 328 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.5704, allocations: 12 kB / 1.2 GB, free: 316 kB / 0.9512 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 0.0001618/0.5706, allocations: 127.3 kB / 1.2 GB, free: 180 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.5707, allocations: 7.906 kB / 1.2 GB, free: 172 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.618e-05/0.5707, allocations: 16.56 kB / 1.2 GB, free: 160 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.5708, allocations: 4 kB / 1.2 GB, free: 156 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.5708, allocations: 7.938 kB / 1.2 GB, free: 148 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.5708, allocations: 0 / 1.2 GB, free: 148 kB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002952/0.5711, allocations: 193.6 kB / 1.201 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.5711, allocations: 0 / 1.201 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003753/0.5715, allocations: 35.98 kB / 1.201 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.369e-05/0.5715, allocations: 7.984 kB / 1.201 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.5716, allocations: 4 kB / 1.201 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.5716, allocations: 3.938 kB / 1.201 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5716, allocations: 7.875 kB / 1.201 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005764/0.5722, allocations: 202.7 kB / 1.201 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.5723, allocations: 93 kB / 1.201 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.457e-05/0.5724, allocations: 4.062 kB / 1.201 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.5726, allocations: 11.98 kB / 1.201 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.656e-05/0.5727, allocations: 19.92 kB / 1.201 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.5727, allocations: 4 kB / 1.201 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.642e-05/0.5728, allocations: 75.28 kB / 1.201 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.2e-07/0.5728, allocations: 0 / 1.201 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004265/0.5732, allocations: 32 kB / 1.201 GB, free: 15.38 MB / 0.9669 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.001051/0.5743, allocations: 0.7465 MB / 1.202 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.5747, allocations: 118.1 kB / 1.202 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5747, allocations: 0 / 1.202 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.575, allocations: 59.86 kB / 1.202 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.5754, allocations: 18.3 kB / 1.202 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003365/0.5788, allocations: 1.848 MB / 1.204 GB, free: 12.47 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.5792, allocations: 0.7086 MB / 1.205 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002334/0.5794, allocations: 20.64 kB / 1.205 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.892e-05/0.5795, allocations: 23.44 kB / 1.205 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of SimCode: time 6.51e-07/0.5795, allocations: 4 kB / 1.205 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9867/1.566, allocations: 2.295 MB / 1.207 GB, free: 9.496 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004315/1.567, allocations: 196.9 kB / 1.207 GB, free: 9.242 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.404/4.971, allocations: 0 / 1.207 GB, free: 9.242 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[3]=0.002000 " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(hSteSym),der(hSteCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,X[1],cpCod,cpSym,cvCod,cvSym,der(T),der(X[1]),der(cpCod),der(cpSym),der(cvCod),der(cvSym),der(hAirCod),der(hAirSym),der(hLiqCod),der(hLiqSym),der(hSteCod),der(hSteSym),hAirCod,hAirSym,hLiqCod,hLiqSym,hSteCod,hSteSym,time