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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007576/0.007576, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.002108/0.002108, allocations: 202.5 kB / 16.68 MB, free: 5.969 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.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.6/2.6, allocations: 482.6 MB / 0.755 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 64.12 kB / 1.083 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2568, allocations: 162.3 MB / 1.242 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001921/0.2587, allocations: 1.335 MB / 1.243 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6325/0.8912, allocations: 148.1 MB / 1.388 GB, free: 6.598 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.664e-05/0.8912, allocations: 1.406 kB / 1.388 GB, free: 6.598 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 3.447e-05/0.8913, allocations: 5.625 kB / 1.388 GB, free: 6.594 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 8.32e-05/0.8914, allocations: 13.16 kB / 1.388 GB, free: 6.586 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008221/0.8922, allocations: 333.9 kB / 1.388 GB, free: 6.348 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 9.39e-05/0.8923, allocations: 63.98 kB / 1.388 GB, free: 6.316 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 3.282e-05/0.8924, allocations: 7.391 kB / 1.388 GB, free: 6.312 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 3.961e-05/0.8924, allocations: 31.47 kB / 1.388 GB, free: 6.297 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 8.163e-05/0.8925, allocations: 28.25 kB / 1.388 GB, free: 6.281 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.8925, allocations: 10.66 kB / 1.388 GB, free: 6.273 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006992/0.8932, allocations: 410.3 kB / 1.389 GB, free: 6.051 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 4.15e-05/0.8933, allocations: 12.05 kB / 1.389 GB, free: 6.043 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.8933, allocations: 27.45 kB / 1.389 GB, free: 6.027 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.8936, allocations: 161.8 kB / 1.389 GB, free: 5.949 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.8936, allocations: 1.094 kB / 1.389 GB, free: 5.949 MB / 1.092 GB Notification: Performance of FrontEnd: time 9.92e-07/0.8936, allocations: 5.719 kB / 1.389 GB, free: 5.945 MB / 1.092 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.8936, allocations: 0 / 1.389 GB, free: 5.945 MB / 1.092 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.0004281/0.8941, allocations: 390.5 kB / 1.389 GB, free: 5.547 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.8941, allocations: 9.562 kB / 1.389 GB, free: 5.547 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.8942, allocations: 41.3 kB / 1.389 GB, free: 5.5 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.8945, allocations: 33.98 kB / 1.389 GB, free: 5.488 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.8946, allocations: 166.5 kB / 1.389 GB, free: 5.289 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.8946, allocations: 10.12 kB / 1.389 GB, free: 5.281 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.8947, allocations: 18.25 kB / 1.389 GB, free: 5.27 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.8948, allocations: 77.92 kB / 1.39 GB, free: 5.211 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.8948, allocations: 4 kB / 1.39 GB, free: 5.207 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.8948, allocations: 2.656 kB / 1.39 GB, free: 5.207 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.8949, allocations: 1.094 kB / 1.39 GB, free: 5.207 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.911e-05/0.8949, allocations: 49.83 kB / 1.39 GB, free: 5.184 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001843/0.8951, allocations: 185 kB / 1.39 GB, free: 4.969 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.8953, allocations: 87.75 kB / 1.39 GB, free: 4.918 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.028e-05/0.8954, allocations: 32.44 kB / 1.39 GB, free: 4.898 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002104/0.8956, allocations: 180.9 kB / 1.39 GB, free: 4.699 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.8956, allocations: 35.84 kB / 1.39 GB, free: 4.656 MB / 1.092 GB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.8956, allocations: 5.094 kB / 1.39 GB, free: 4.652 MB / 1.092 GB Notification: Performance of matching and sorting (n=19): time 0.001142/0.8968, allocations: 0.544 MB / 1.391 GB, free: 4.25 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.8968, allocations: 57.53 kB / 1.391 GB, free: 4.184 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.028e-05/0.8969, allocations: 106 kB / 1.391 GB, free: 4.074 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.8969, allocations: 31.14 kB / 1.391 GB, free: 4.039 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 3.246e-05/0.897, allocations: 80.52 kB / 1.391 GB, free: 3.957 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 5.64e-05/0.897, allocations: 71.47 kB / 1.391 GB, free: 3.895 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.165e-05/0.8971, allocations: 43.3 kB / 1.391 GB, free: 3.859 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.8972, allocations: 321.5 kB / 1.391 GB, free: 3.539 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.1e-05/0.8973, allocations: 35.86 kB / 1.391 GB, free: 3.523 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.204e-05/0.8973, allocations: 69.62 kB / 1.391 GB, free: 3.473 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.8975, allocations: 115 kB / 1.391 GB, free: 3.398 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.8975, allocations: 5.969 kB / 1.391 GB, free: 3.395 MB / 1.092 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000205/0.8977, allocations: 159.2 kB / 1.392 GB, free: 3.305 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.8977, allocations: 4.844 kB / 1.392 GB, free: 3.305 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.8977, allocations: 1.719 kB / 1.392 GB, free: 3.305 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.8978, allocations: 2.281 kB / 1.392 GB, free: 3.305 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.8979, allocations: 39.58 kB / 1.392 GB, free: 3.297 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.8979, allocations: 5.438 kB / 1.392 GB, free: 3.293 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.158e-05/0.898, allocations: 9.375 kB / 1.392 GB, free: 3.285 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.898, allocations: 5.438 kB / 1.392 GB, free: 3.285 MB / 1.092 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.706e-05/0.8981, allocations: 127.2 kB / 1.392 GB, free: 3.156 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.8981, allocations: 8.016 kB / 1.392 GB, free: 3.152 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.347e-05/0.8982, allocations: 21.86 kB / 1.392 GB, free: 3.137 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.8982, allocations: 1.594 kB / 1.392 GB, free: 3.137 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.8982, allocations: 0 / 1.392 GB, free: 3.137 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.8982, allocations: 9.297 kB / 1.392 GB, free: 3.129 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.8983, allocations: 192.3 kB / 1.392 GB, free: 2.91 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.8983, allocations: 1.062 kB / 1.392 GB, free: 2.91 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/0.8985, allocations: 37.67 kB / 1.392 GB, free: 2.902 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.8985, allocations: 2.094 kB / 1.392 GB, free: 2.902 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.8986, allocations: 9.469 kB / 1.392 GB, free: 2.895 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.8986, allocations: 1.438 kB / 1.392 GB, free: 2.895 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.8986, allocations: 0 / 1.392 GB, free: 2.895 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.8988, allocations: 210.8 kB / 1.392 GB, free: 2.758 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.8989, allocations: 95.02 kB / 1.392 GB, free: 2.652 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.8989, allocations: 2.062 kB / 1.392 GB, free: 2.652 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.8991, allocations: 8.062 kB / 1.392 GB, free: 2.648 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.8991, allocations: 16.7 kB / 1.392 GB, free: 2.637 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.8991, allocations: 13.45 kB / 1.392 GB, free: 2.629 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.678e-05/0.8992, allocations: 76.34 kB / 1.393 GB, free: 2.555 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8992, allocations: 0 / 1.393 GB, free: 2.555 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0001944/0.8994, allocations: 30.16 kB / 1.393 GB, free: 2.547 MB / 1.092 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.0005511/0.8999, allocations: 0.7594 MB / 1.393 GB, free: 1.867 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0001796/0.9001, allocations: 108 kB / 1.393 GB, free: 1.828 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.9001, allocations: 1.281 kB / 1.393 GB, free: 1.828 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 6.413e-05/0.9002, allocations: 50.05 kB / 1.393 GB, free: 1.812 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/0.9004, allocations: 23.98 kB / 1.393 GB, free: 1.797 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.9021, allocations: 1.815 MB / 1.395 GB, free: 208 kB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.9024, allocations: 0.7047 MB / 1.396 GB, free: 15.49 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 9.051e-05/0.9025, allocations: 22.14 kB / 1.396 GB, free: 15.48 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.9026, allocations: 27.05 kB / 1.396 GB, free: 15.46 MB / 1.107 GB Notification: Performance of SimCode: time 2.4e-07/0.9026, allocations: 1.062 kB / 1.396 GB, free: 15.46 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.861/6.763, allocations: 2.421 MB / 1.398 GB, free: 14.19 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/23.2, allocations: 14.47 kB / 1.398 GB, free: 14.18 MB / 1.107 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=400 --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