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.001224/0.001224, 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.00132/0.00132, allocations: 193.1 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.245/1.245, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.151/2.151, allocations: 390.3 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 59.91 kB / 0.8126 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5719/0.5736, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001953/0.5756, allocations: 1.329 MB / 0.951 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1366/0.7122, allocations: 148.1 MB / 1.096 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.338e-05/0.7123, allocations: 0 / 1.096 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.815e-05/0.7123, allocations: 3.938 kB / 1.096 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.7125, allocations: 19.91 kB / 1.096 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009677/0.7134, allocations: 322.6 kB / 1.096 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.043e-05/0.7135, allocations: 67.81 kB / 1.096 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.34e-05/0.7136, allocations: 8 kB / 1.096 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.266e-05/0.7136, allocations: 35.84 kB / 1.096 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.049e-05/0.7137, allocations: 31.89 kB / 1.096 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.258e-05/0.7138, allocations: 4 kB / 1.096 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007489/0.7145, allocations: 406.8 kB / 1.096 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.612e-05/0.7146, allocations: 23.91 kB / 1.097 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.27e-05/0.7146, allocations: 23.92 kB / 1.097 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002947/0.7149, allocations: 157.9 kB / 1.097 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.7149, allocations: 0 / 1.097 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.282e-06/0.7149, allocations: 4 kB / 1.097 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.7149, allocations: 4 kB / 1.097 GB, free: 10.75 MB / 0.8575 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.0003908/0.7153, allocations: 383.3 kB / 1.097 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.7154, allocations: 16.02 kB / 1.097 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.305e-05/0.7154, allocations: 34.75 kB / 1.097 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003767/0.7158, allocations: 40.75 kB / 1.097 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.961e-05/0.7159, allocations: 172.1 kB / 1.097 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.7159, allocations: 8 kB / 1.097 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.726e-05/0.716, allocations: 12 kB / 1.097 GB, free: 10 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/0.7161, allocations: 73.66 kB / 1.097 GB, free: 9.922 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.7161, allocations: 0 / 1.097 GB, free: 9.922 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.7161, allocations: 4 kB / 1.097 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.7162, allocations: 3.984 kB / 1.097 GB, free: 9.914 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.82e-05/0.7162, allocations: 47.95 kB / 1.097 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001674/0.7164, allocations: 189.4 kB / 1.098 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.7166, allocations: 102.6 kB / 1.098 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.581e-05/0.7167, allocations: 32.84 kB / 1.098 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000234/0.7169, allocations: 174.5 kB / 1.098 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.7169, allocations: 38.56 kB / 1.098 GB, free: 9.234 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.7169, allocations: 3.938 kB / 1.098 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001181/0.7181, allocations: 0.5337 MB / 1.098 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.7182, allocations: 55.41 kB / 1.099 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.174e-05/0.7182, allocations: 101.8 kB / 1.099 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.7182, allocations: 29.83 kB / 1.099 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.283e-05/0.7183, allocations: 84.52 kB / 1.099 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.111e-05/0.7183, allocations: 70.98 kB / 1.099 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.071e-05/0.7184, allocations: 37.72 kB / 1.099 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.111e-05/0.7185, allocations: 318.8 kB / 1.099 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.131e-05/0.7185, allocations: 35.97 kB / 1.099 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.675e-05/0.7186, allocations: 77.03 kB / 1.099 GB, free: 7.793 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.7188, allocations: 119.3 kB / 1.099 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.7188, allocations: 0 / 1.099 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002052/0.719, allocations: 161.4 kB / 1.1 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.719, allocations: 4 kB / 1.1 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.719, allocations: 4 kB / 1.1 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.719, allocations: 0 / 1.1 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.7192, allocations: 35.98 kB / 1.1 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.7192, allocations: 3.938 kB / 1.1 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.473e-05/0.7193, allocations: 15.94 kB / 1.1 GB, free: 7.438 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.996e-06/0.7193, allocations: 4 kB / 1.1 GB, free: 7.434 MB / 0.8575 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.58e-05/0.7194, allocations: 117.8 kB / 1.1 GB, free: 7.309 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.235e-05/0.7194, allocations: 15.89 kB / 1.1 GB, free: 7.293 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.989e-05/0.7194, allocations: 16.44 kB / 1.1 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.7194, allocations: 0 / 1.1 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.7194, allocations: 7.938 kB / 1.1 GB, free: 7.266 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.7195, allocations: 0 / 1.1 GB, free: 7.266 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.7196, allocations: 185.6 kB / 1.1 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.7196, allocations: 8 kB / 1.1 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.7198, allocations: 44.05 kB / 1.1 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.7198, allocations: 4 kB / 1.1 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.7198, allocations: 0 / 1.1 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7198, allocations: 0 / 1.1 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7198, allocations: 3.938 kB / 1.1 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.7201, allocations: 211.4 kB / 1.1 GB, free: 6.754 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.371e-05/0.7202, allocations: 96.94 kB / 1.1 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.7202, allocations: 8.062 kB / 1.1 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.7203, allocations: 15.92 kB / 1.1 GB, free: 6.617 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.468e-05/0.7204, allocations: 15.86 kB / 1.1 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.7204, allocations: 12 kB / 1.1 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.834e-05/0.7204, allocations: 75.28 kB / 1.1 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7204, allocations: 0 / 1.1 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002138/0.7207, allocations: 28 kB / 1.1 GB, free: 6.488 MB / 0.8575 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.0004975/0.7212, allocations: 0.7465 MB / 1.101 GB, free: 5.715 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002011/0.7214, allocations: 111.9 kB / 1.101 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7214, allocations: 0 / 1.101 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.915e-05/0.7214, allocations: 59.91 kB / 1.101 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.7217, allocations: 13.03 kB / 1.101 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.7234, allocations: 1.821 MB / 1.103 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.7236, allocations: 0.7047 MB / 1.104 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001241/0.7237, allocations: 20.62 kB / 1.104 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.942e-05/0.7238, allocations: 27.44 kB / 1.104 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.7238, allocations: 0 / 1.104 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09822/0.822, allocations: 2.383 MB / 1.106 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.294/10.12, allocations: 14.86 kB / 1.106 GB, free: 0.5 MB / 0.8575 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