Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.SteamDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_SteamDerivativeCheck",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.00116/0.00116, allocations: 108 kB / 15.61 MB, free: 152 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.001153/0.001153, allocations: 197.8 kB / 16.53 MB, free: 6.664 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.407/2.407, allocations: 437 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 71.89 kB / 0.8693 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5776/0.5793, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.00203/0.5814, allocations: 1.256 MB / 1.019 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1365/0.7179, allocations: 137.7 MB / 1.153 GB, free: 6.98 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.44e-05/0.7179, allocations: 4 kB / 1.153 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 2.085e-05/0.718, allocations: 3.984 kB / 1.153 GB, free: 6.973 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.987e-05/0.7181, allocations: 7.875 kB / 1.153 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.7193, allocations: 470.3 kB / 1.154 GB, free: 6.504 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 6.7e-05/0.7194, allocations: 31.92 kB / 1.154 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.627e-05/0.7195, allocations: 0 / 1.154 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 4.038e-05/0.7195, allocations: 27.91 kB / 1.154 GB, free: 6.445 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.384e-05/0.7196, allocations: 15.98 kB / 1.154 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.7196, allocations: 0 / 1.154 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001447/0.7211, allocations: 0.8114 MB / 1.154 GB, free: 5.617 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 2.009e-05/0.7211, allocations: 15.92 kB / 1.154 GB, free: 5.602 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.947e-05/0.7211, allocations: 11.98 kB / 1.154 GB, free: 5.59 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006083/0.7217, allocations: 445.4 kB / 1.155 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.7217, allocations: 0 / 1.155 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7218, allocations: 0 / 1.155 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.7218, allocations: 0 / 1.155 GB, free: 5.156 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005135/0.7223, allocations: 371.4 kB / 1.155 GB, free: 4.746 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.7223, allocations: 12.02 kB / 1.155 GB, free: 4.734 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.92e-05/0.7224, allocations: 42.69 kB / 1.155 GB, free: 4.684 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.7226, allocations: 12.92 kB / 1.155 GB, free: 4.672 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.7227, allocations: 164.4 kB / 1.155 GB, free: 4.473 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.7227, allocations: 4.375 kB / 1.155 GB, free: 4.469 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.82e-05/0.7227, allocations: 15.83 kB / 1.155 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.7229, allocations: 53.67 kB / 1.156 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.7229, allocations: 0 / 1.156 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.7229, allocations: 4 kB / 1.156 GB, free: 4.391 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.7229, allocations: 0 / 1.156 GB, free: 4.391 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.768e-05/0.723, allocations: 19.92 kB / 1.156 GB, free: 4.371 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.7232, allocations: 165.7 kB / 1.156 GB, free: 4.16 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 9.953e-05/0.7233, allocations: 54.5 kB / 1.156 GB, free: 4.098 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.127e-05/0.7233, allocations: 20.84 kB / 1.156 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01095/0.7343, allocations: 3.167 MB / 1.159 GB, free: 0.8125 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.7343, allocations: 34.56 kB / 1.159 GB, free: 0.7695 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.7343, allocations: 0 / 1.159 GB, free: 0.7695 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.04247/0.7768, allocations: 14.87 MB / 1.173 GB, free: 1.746 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.7769, allocations: 55.41 kB / 1.173 GB, free: 1.68 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.519e-05/0.7769, allocations: 89.86 kB / 1.174 GB, free: 1.582 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.777, allocations: 29.83 kB / 1.174 GB, free: 1.547 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.639e-05/0.777, allocations: 84.14 kB / 1.174 GB, free: 1.461 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.035e-05/0.7771, allocations: 43.39 kB / 1.174 GB, free: 1.418 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/0.7771, allocations: 29.7 kB / 1.174 GB, free: 1.383 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.7772, allocations: 322.8 kB / 1.174 GB, free: 1.059 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.974e-05/0.7773, allocations: 23.98 kB / 1.174 GB, free: 1.035 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.316e-05/0.7773, allocations: 23.98 kB / 1.174 GB, free: 1.012 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.7775, allocations: 68.72 kB / 1.174 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.7775, allocations: 4 kB / 1.174 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002096/0.7777, allocations: 101.5 kB / 1.174 GB, free: 0.8359 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.7777, allocations: 4 kB / 1.174 GB, free: 0.832 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.7777, allocations: 0 / 1.174 GB, free: 0.832 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.7777, allocations: 4 kB / 1.174 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.7779, allocations: 27.98 kB / 1.174 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.892e-06/0.7779, allocations: 0 / 1.174 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.554e-05/0.7779, allocations: 3.938 kB / 1.174 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.7779, allocations: 4 kB / 1.174 GB, free: 0.793 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 14 * 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.034e-05/0.778, allocations: 125.7 kB / 1.174 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.102e-05/0.7781, allocations: 0 / 1.174 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002693/0.7783, allocations: 129.5 kB / 1.175 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.7783, allocations: 0 / 1.175 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.7784, allocations: 3.938 kB / 1.175 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.7784, allocations: 4 kB / 1.175 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.7785, allocations: 185.6 kB / 1.175 GB, free: 300 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.7785, allocations: 0 / 1.175 GB, free: 300 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.7786, allocations: 23.98 kB / 1.175 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.7787, allocations: 0 / 1.175 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.7787, allocations: 4 kB / 1.175 GB, free: 272 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.7787, allocations: 3.938 kB / 1.175 GB, free: 268 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.7787, allocations: 0 / 1.175 GB, free: 268 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.779, allocations: 153 kB / 1.175 GB, free: 96 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.914e-05/0.7791, allocations: 97.12 kB / 1.175 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.7791, allocations: 8 kB / 1.175 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.7792, allocations: 15.98 kB / 1.175 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.805e-05/0.7792, allocations: 4 kB / 1.175 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.7793, allocations: 11.98 kB / 1.175 GB, free: 15.94 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.355e-05/0.7793, allocations: 75.28 kB / 1.175 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7793, allocations: 0 / 1.175 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001712/0.781, allocations: 0.5664 MB / 1.176 GB, free: 15.3 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hVapSym,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 (11): * Single equations (assignments): 11 * 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.00379/0.7848, allocations: 0.9362 MB / 1.177 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001742/0.785, allocations: 71.84 kB / 1.177 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.785, allocations: 0 / 1.177 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.916e-05/0.7851, allocations: 35.92 kB / 1.177 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.7853, allocations: 8 kB / 1.177 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.7876, allocations: 1.543 MB / 1.178 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.7878, allocations: 0.6846 MB / 1.179 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.393e-05/0.7879, allocations: 24.53 kB / 1.179 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.588e-05/0.788, allocations: 27.38 kB / 1.179 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of SimCode: time 6.21e-07/0.788, allocations: 0 / 1.179 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1172/0.9051, allocations: 25.4 MB / 1.204 GB, free: 2.461 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/11.49, allocations: 7.328 kB / 1.204 GB, free: 2.457 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Examples_SteamDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 Buildings_10_Buildings_Media_Examples_SteamDerivativeCheck.fmu > Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=1.000000 File[406]=0.405000 " Variables in the reference:time,der(hVapSym),der(hVapCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,cpCod,cpSym,cvCod,cvSym,der(T),der(cpCod),der(cpSym),der(cvCod),der(cvSym),der(hVapCod),der(hVapSym),hVapCod,hVapSym,time