Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_11_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.001411/0.001411, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.244/1.244, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.405/2.405, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 62.91 kB / 0.9086 GB, free: 34.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2291, allocations: 159.2 MB / 1.064 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002037/0.2312, allocations: 1.326 MB / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1416/0.3728, allocations: 148.1 MB / 1.21 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.676e-05/0.3728, allocations: 4 kB / 1.21 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.167e-05/0.3729, allocations: 3.938 kB / 1.21 GB, free: 8.227 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.968e-05/0.373, allocations: 11.91 kB / 1.21 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008549/0.3739, allocations: 326.5 kB / 1.21 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.406e-05/0.374, allocations: 67.75 kB / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.202e-05/0.374, allocations: 0 / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.042e-05/0.374, allocations: 35.84 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.073e-05/0.3741, allocations: 35.89 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.3742, allocations: 4 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00073/0.3749, allocations: 406.8 kB / 1.211 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.396e-05/0.3749, allocations: 19.97 kB / 1.211 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.861e-05/0.375, allocations: 23.88 kB / 1.211 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.3753, allocations: 163.9 kB / 1.211 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3753, allocations: 0 / 1.211 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.11e-07/0.3753, allocations: 0 / 1.211 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.271e-05/0.3753, allocations: 0 / 1.211 GB, free: 7.152 MB / 0.9669 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.0004114/0.3757, allocations: 387.3 kB / 1.211 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.3758, allocations: 8.031 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.446e-05/0.3758, allocations: 42.73 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000343/0.3762, allocations: 36.91 kB / 1.211 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.3763, allocations: 172 kB / 1.212 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.3763, allocations: 11.98 kB / 1.212 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.791e-05/0.3763, allocations: 15.91 kB / 1.212 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.3765, allocations: 73.66 kB / 1.212 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.3765, allocations: 0 / 1.212 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.3765, allocations: 4 kB / 1.212 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.3765, allocations: 0 / 1.212 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.758e-05/0.3766, allocations: 47.89 kB / 1.212 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.3768, allocations: 193.6 kB / 1.212 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.377, allocations: 90.53 kB / 1.212 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.026e-05/0.377, allocations: 32.94 kB / 1.212 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002148/0.3773, allocations: 178.2 kB / 1.212 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.3773, allocations: 38.56 kB / 1.212 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 9.92e-07/0.3773, allocations: 0 / 1.212 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001173/0.3785, allocations: 0.5508 MB / 1.213 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.3785, allocations: 59.39 kB / 1.213 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.565e-05/0.3786, allocations: 97.8 kB / 1.213 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.3786, allocations: 29.7 kB / 1.213 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.575e-05/0.3787, allocations: 88.45 kB / 1.213 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.627e-05/0.3787, allocations: 71 kB / 1.213 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.082e-05/0.3788, allocations: 33.72 kB / 1.213 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3789, allocations: 322.8 kB / 1.214 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.759e-05/0.379, allocations: 36.11 kB / 1.214 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.062e-05/0.3791, allocations: 67.41 kB / 1.214 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.3792, allocations: 119.3 kB / 1.214 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.3792, allocations: 0 / 1.214 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002067/0.3794, allocations: 157.4 kB / 1.214 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.3794, allocations: 8 kB / 1.214 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.3795, allocations: 4 kB / 1.214 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.3795, allocations: 0 / 1.214 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.3796, allocations: 40.11 kB / 1.214 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3796, allocations: 7.938 kB / 1.214 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.348e-05/0.3797, allocations: 4 kB / 1.214 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.3797, allocations: 19.88 kB / 1.214 GB, free: 3.82 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 8.04e-05/0.3798, allocations: 113.8 kB / 1.214 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.924e-05/0.3798, allocations: 7.906 kB / 1.214 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.3799, allocations: 20.42 kB / 1.214 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3799, allocations: 8 kB / 1.214 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3799, allocations: 3.938 kB / 1.214 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3799, allocations: 0 / 1.214 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.3801, allocations: 193.6 kB / 1.214 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3801, allocations: 0 / 1.214 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.3802, allocations: 39.92 kB / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3802, allocations: 0 / 1.214 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.3803, allocations: 4 kB / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3803, allocations: 0 / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3803, allocations: 7.938 kB / 1.214 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.3806, allocations: 212.8 kB / 1.215 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.681e-05/0.3806, allocations: 85.09 kB / 1.215 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.3807, allocations: 8 kB / 1.215 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.3808, allocations: 4 kB / 1.215 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.682e-05/0.3808, allocations: 19.92 kB / 1.215 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.3808, allocations: 7.984 kB / 1.215 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.437e-05/0.3809, allocations: 75.28 kB / 1.215 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2e-07/0.3809, allocations: 4.094 kB / 1.215 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001974/0.3811, allocations: 32 kB / 1.215 GB, free: 2.898 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.0005418/0.3816, allocations: 0.7454 MB / 1.216 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001964/0.3818, allocations: 115.8 kB / 1.216 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3818, allocations: 4 kB / 1.216 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.347e-05/0.3819, allocations: 61.41 kB / 1.216 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.3821, allocations: 21.77 kB / 1.216 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.3839, allocations: 1.808 MB / 1.217 GB, free: 24 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3842, allocations: 0.7008 MB / 1.218 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001166/0.3843, allocations: 32.61 kB / 1.218 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.968e-05/0.3843, allocations: 23.44 kB / 1.218 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.3843, allocations: 0 / 1.218 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.752/9.136, allocations: 2.384 MB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/19.24, allocations: 0.625 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_11_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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