Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_9_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.00377/0.00377, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.0009217/0.0009217, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.178/1.178, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 1.981/1.981, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 64.14 kB / 0.9504 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6455/0.6475, allocations: 140.4 MB / 1.087 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001799/0.6494, allocations: 1.339 MB / 1.089 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1559/0.8052, allocations: 148.1 MB / 1.233 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.865e-05/0.8053, allocations: 1.125 kB / 1.233 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.297e-05/0.8054, allocations: 11.88 kB / 1.233 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.601e-05/0.8055, allocations: 14.84 kB / 1.233 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008397/0.8064, allocations: 323.6 kB / 1.234 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.33e-05/0.8065, allocations: 68.69 kB / 1.234 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.532e-05/0.8065, allocations: 6.375 kB / 1.234 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.15e-05/0.8066, allocations: 34.94 kB / 1.234 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.789e-05/0.8067, allocations: 36.36 kB / 1.234 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.8067, allocations: 3.812 kB / 1.234 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007164/0.8074, allocations: 401.3 kB / 1.234 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.541e-05/0.8074, allocations: 16.67 kB / 1.234 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.285e-05/0.8075, allocations: 31.28 kB / 1.234 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.8078, allocations: 156.2 kB / 1.234 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.8078, allocations: 5.094 kB / 1.234 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.362e-06/0.8078, allocations: 0 / 1.234 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.8078, allocations: 0 / 1.234 GB, free: 4.328 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.000411/0.8082, allocations: 394.6 kB / 1.235 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.8083, allocations: 10.47 kB / 1.235 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.79e-05/0.8083, allocations: 36.91 kB / 1.235 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003615/0.8087, allocations: 34.02 kB / 1.235 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.624e-05/0.8088, allocations: 165.3 kB / 1.235 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.8088, allocations: 14.88 kB / 1.235 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.8088, allocations: 10.53 kB / 1.235 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.809, allocations: 80.86 kB / 1.235 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.809, allocations: 1.5 kB / 1.235 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.809, allocations: 4 kB / 1.235 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-06/0.809, allocations: 1.469 kB / 1.235 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.326e-05/0.8091, allocations: 46.73 kB / 1.235 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001797/0.8093, allocations: 188.9 kB / 1.235 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.8095, allocations: 94.94 kB / 1.235 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.003e-05/0.8095, allocations: 28.16 kB / 1.235 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002114/0.8098, allocations: 177.2 kB / 1.236 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.8098, allocations: 31.84 kB / 1.236 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.8098, allocations: 0 / 1.236 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001206/0.811, allocations: 0.5547 MB / 1.236 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.811, allocations: 53.25 kB / 1.236 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.46e-05/0.8111, allocations: 101.2 kB / 1.236 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.8111, allocations: 30.86 kB / 1.236 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.8112, allocations: 81.52 kB / 1.236 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.274e-05/0.8112, allocations: 74.33 kB / 1.237 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.175e-05/0.8113, allocations: 40.27 kB / 1.237 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.8114, allocations: 317.3 kB / 1.237 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.096e-05/0.8115, allocations: 43.97 kB / 1.237 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.077e-05/0.8116, allocations: 79.12 kB / 1.237 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.8117, allocations: 109.4 kB / 1.237 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.8117, allocations: 1.062 kB / 1.237 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002109/0.8119, allocations: 157.3 kB / 1.237 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.8119, allocations: 5.188 kB / 1.237 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.812, allocations: 1.125 kB / 1.237 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.812, allocations: 2.25 kB / 1.237 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.8121, allocations: 42.92 kB / 1.237 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.8121, allocations: 10.31 kB / 1.237 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.237e-05/0.8122, allocations: 1.312 kB / 1.237 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.8122, allocations: 9.25 kB / 1.237 GB, free: 1.66 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.928e-05/0.8123, allocations: 130.9 kB / 1.237 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/0.8123, allocations: 8.625 kB / 1.237 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.573e-05/0.8124, allocations: 17.91 kB / 1.237 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.8124, allocations: 2.344 kB / 1.237 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.8124, allocations: 3.938 kB / 1.237 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.8124, allocations: 0 / 1.237 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.8126, allocations: 192.9 kB / 1.238 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.8126, allocations: 1.156 kB / 1.238 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.8128, allocations: 46.42 kB / 1.238 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.8128, allocations: 1.031 kB / 1.238 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.8128, allocations: 5.047 kB / 1.238 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.8128, allocations: 1.062 kB / 1.238 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.8128, allocations: 4.969 kB / 1.238 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002804/0.8131, allocations: 205.3 kB / 1.238 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.858e-05/0.8132, allocations: 94.5 kB / 1.238 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.8132, allocations: 6.375 kB / 1.238 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.8133, allocations: 7.609 kB / 1.238 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.507e-05/0.8133, allocations: 17.61 kB / 1.238 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.8134, allocations: 3.688 kB / 1.238 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.808e-05/0.8134, allocations: 81.59 kB / 1.238 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.382e-06/0.8134, allocations: 0 / 1.238 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002123/0.8136, allocations: 30.38 kB / 1.238 GB, free: 0.9219 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.0005206/0.8141, allocations: 0.747 MB / 1.239 GB, free: 256 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001821/0.8143, allocations: 106.2 kB / 1.239 GB, free: 216 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.8144, allocations: 5.219 kB / 1.239 GB, free: 212 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.261e-05/0.8144, allocations: 57.58 kB / 1.239 GB, free: 188 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.8147, allocations: 26.81 kB / 1.239 GB, free: 168 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.8164, allocations: 1.813 MB / 1.241 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.8166, allocations: 0.6975 MB / 1.242 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.373e-05/0.8167, allocations: 26.23 kB / 1.242 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.095e-05/0.8167, allocations: 23.69 kB / 1.242 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.8168, allocations: 4 kB / 1.242 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1148/0.9315, allocations: 2.434 MB / 1.244 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.729, allocations: 3.281 kB / 1.244 GB, free: 12.54 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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