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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.0008784/0.0008784, allocations: 91.84 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.005352/0.005352, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.28/1.28, 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/Buildings 11.0.0-master/package.mo): time 2.385/2.385, allocations: 462.6 MB / 0.7364 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002905, allocations: 19.19 kB / 0.9029 GB, free: 36.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2387, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001053/0.2398, allocations: 1.06 MB / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1269/0.3668, allocations: 144.2 MB / 1.201 GB, free: 3.066 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.329e-05/0.3668, allocations: 0 / 1.201 GB, free: 3.066 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.217e-05/0.3669, allocations: 7.922 kB / 1.201 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.826e-05/0.3669, allocations: 11.92 kB / 1.201 GB, free: 3.047 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007787/0.3677, allocations: 298.8 kB / 1.201 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.955e-05/0.3678, allocations: 87.73 kB / 1.201 GB, free: 2.668 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 2.764e-05/0.3679, allocations: 0 / 1.201 GB, free: 2.668 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.636e-05/0.3679, allocations: 31.91 kB / 1.201 GB, free: 2.637 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.958e-05/0.368, allocations: 43.83 kB / 1.201 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.368, allocations: 4 kB / 1.201 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006726/0.3687, allocations: 498.7 kB / 1.202 GB, free: 2.102 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.865e-05/0.3687, allocations: 11.98 kB / 1.202 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.678e-05/0.3688, allocations: 57.55 kB / 1.202 GB, free: 2.027 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002579/0.369, allocations: 187.8 kB / 1.202 GB, free: 1.844 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.3691, allocations: 0 / 1.202 GB, free: 1.844 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3691, allocations: 0 / 1.202 GB, free: 1.844 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.156e-06/0.3691, allocations: 0 / 1.202 GB, free: 1.844 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.0003191/0.3694, allocations: 371.5 kB / 1.202 GB, free: 1.434 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.3694, allocations: 11.97 kB / 1.202 GB, free: 1.422 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.351e-05/0.3695, allocations: 46.73 kB / 1.202 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003395/0.3698, allocations: 36.81 kB / 1.202 GB, free: 1.332 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.963e-05/0.3699, allocations: 172.1 kB / 1.202 GB, free: 1.125 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.3699, allocations: 4 kB / 1.202 GB, free: 1.121 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.979e-05/0.37, allocations: 15.91 kB / 1.202 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.3701, allocations: 81.59 kB / 1.203 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.21e-06/0.3701, allocations: 0 / 1.203 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3701, allocations: 0 / 1.203 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.3701, allocations: 0 / 1.203 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.858e-05/0.3702, allocations: 47.95 kB / 1.203 GB, free: 0.9727 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.3704, allocations: 189.5 kB / 1.203 GB, free: 0.7383 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.3705, allocations: 90.62 kB / 1.203 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.611e-05/0.3706, allocations: 40.83 kB / 1.203 GB, free: 0.5977 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001818/0.3708, allocations: 174.2 kB / 1.203 GB, free: 400 kB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.3708, allocations: 34.56 kB / 1.203 GB, free: 356 kB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.3708, allocations: 0 / 1.203 GB, free: 356 kB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001059/0.3718, allocations: 0.5506 MB / 1.204 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.3719, allocations: 51.41 kB / 1.204 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.43e-05/0.3719, allocations: 109.7 kB / 1.204 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.372, allocations: 33.7 kB / 1.204 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.327e-05/0.372, allocations: 84.64 kB / 1.204 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.659e-05/0.372, allocations: 70.94 kB / 1.204 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.3721, allocations: 21.72 kB / 1.204 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 7.593e-05/0.3722, allocations: 322.8 kB / 1.204 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.465e-05/0.3722, allocations: 31.98 kB / 1.204 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.394e-05/0.3723, allocations: 75.39 kB / 1.204 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.3725, allocations: 119.3 kB / 1.205 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3725, allocations: 4 kB / 1.205 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002195/0.3728, allocations: 149.5 kB / 1.205 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.3728, allocations: 4 kB / 1.205 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.3728, allocations: 0 / 1.205 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.3728, allocations: 4 kB / 1.205 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.373, allocations: 43.92 kB / 1.205 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.373, allocations: 3.938 kB / 1.205 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.985e-05/0.373, allocations: 12.12 kB / 1.205 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.373, allocations: 4 kB / 1.205 GB, free: 14.55 MB / 0.9669 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.351e-05/0.3731, allocations: 125.8 kB / 1.205 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.3731, allocations: 11.84 kB / 1.205 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.3732, allocations: 20.42 kB / 1.205 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3732, allocations: 4 kB / 1.205 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3732, allocations: 3.938 kB / 1.205 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3732, allocations: 0 / 1.205 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.3733, allocations: 193.6 kB / 1.205 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3733, allocations: 0 / 1.205 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.3735, allocations: 39.98 kB / 1.205 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3735, allocations: 4 kB / 1.205 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.3735, allocations: 3.938 kB / 1.205 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.3736, allocations: 4 kB / 1.205 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3736, allocations: 3.938 kB / 1.205 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002389/0.3738, allocations: 209.1 kB / 1.205 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.704e-05/0.3739, allocations: 89 kB / 1.205 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.3739, allocations: 8.062 kB / 1.205 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.374, allocations: 11.98 kB / 1.205 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.374, allocations: 15.92 kB / 1.205 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.374, allocations: 4 kB / 1.205 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.574e-05/0.3741, allocations: 83.28 kB / 1.206 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3741, allocations: 0 / 1.206 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001924/0.3743, allocations: 24 kB / 1.206 GB, free: 13.62 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.0004348/0.3747, allocations: 0.7468 MB / 1.206 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001543/0.3749, allocations: 104 kB / 1.206 GB, free: 12.74 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3749, allocations: 3.938 kB / 1.206 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.976e-05/0.375, allocations: 55.81 kB / 1.206 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.3752, allocations: 23.92 kB / 1.206 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.3766, allocations: 1.91 MB / 1.208 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.3768, allocations: 0.705 MB / 1.209 GB, free: 9.918 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001682/0.377, allocations: 20.64 kB / 1.209 GB, free: 9.895 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.563e-05/0.3771, allocations: 23.44 kB / 1.209 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of SimCode: time 2.71e-07/0.3771, allocations: 0 / 1.209 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1355/0.5126, allocations: 2.179 MB / 1.211 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.5128, allocations: 198.1 kB / 1.211 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/2.228, allocations: 64 / 1.211 GB, free: 7.555 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