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.008827/0.008827, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.001933/0.001933, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.156 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.694/2.694, allocations: 437.1 MB / 0.7105 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3227, allocations: 151.6 MB / 1.166 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.00249/0.3252, allocations: 1.258 MB / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.8702/1.195, allocations: 137.7 MB / 1.302 GB, free: 13.46 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.228e-05/1.196, allocations: 0 / 1.302 GB, free: 13.46 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.161e-05/1.196, allocations: 1.875 kB / 1.302 GB, free: 13.46 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.417e-05/1.196, allocations: 5.297 kB / 1.302 GB, free: 13.46 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001627/1.197, allocations: 466.3 kB / 1.302 GB, free: 13.4 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9e-05/1.197, allocations: 42.34 kB / 1.302 GB, free: 13.39 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/1.197, allocations: 5.969 kB / 1.302 GB, free: 13.39 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.086e-05/1.197, allocations: 17.53 kB / 1.302 GB, free: 13.39 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.967e-05/1.198, allocations: 20.86 kB / 1.302 GB, free: 13.39 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/1.198, allocations: 2.5 kB / 1.302 GB, free: 13.39 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/1.199, allocations: 0.8305 MB / 1.303 GB, free: 13.38 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.793e-05/1.199, allocations: 6.516 kB / 1.303 GB, free: 13.38 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.891e-05/1.199, allocations: 16.64 kB / 1.303 GB, free: 13.37 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0007048/1.2, allocations: 457 kB / 1.304 GB, free: 13.35 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/1.2, allocations: 0 / 1.304 GB, free: 13.35 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.513e-06/1.2, allocations: 1.062 kB / 1.304 GB, free: 13.35 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.622e-06/1.2, allocations: 0.5625 kB / 1.304 GB, free: 13.35 MB / 1.014 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.0006539/1.201, allocations: 368.4 kB / 1.304 GB, free: 12.99 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/1.201, allocations: 9.188 kB / 1.304 GB, free: 12.99 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.327e-05/1.201, allocations: 34.11 kB / 1.304 GB, free: 12.95 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/1.201, allocations: 13.95 kB / 1.304 GB, free: 12.95 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/1.201, allocations: 170.8 kB / 1.304 GB, free: 12.75 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/1.201, allocations: 1.906 kB / 1.304 GB, free: 12.75 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/1.201, allocations: 11.88 kB / 1.304 GB, free: 12.74 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000149/1.201, allocations: 56.73 kB / 1.304 GB, free: 12.71 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/1.201, allocations: 3.938 kB / 1.304 GB, free: 12.71 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/1.201, allocations: 2.406 kB / 1.304 GB, free: 12.71 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/1.201, allocations: 1.969 kB / 1.304 GB, free: 12.71 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.932e-05/1.201, allocations: 19.03 kB / 1.304 GB, free: 12.71 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001762/1.202, allocations: 161.4 kB / 1.304 GB, free: 12.52 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/1.202, allocations: 60.97 kB / 1.304 GB, free: 12.48 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.428e-05/1.202, allocations: 24.94 kB / 1.305 GB, free: 12.47 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01211/1.214, allocations: 3.201 MB / 1.308 GB, free: 11.75 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.554e-05/1.214, allocations: 34.8 kB / 1.308 GB, free: 11.71 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 2.545e-06/1.214, allocations: 0 / 1.308 GB, free: 11.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.04341/1.257, allocations: 15.01 MB / 1.322 GB, free: 9.805 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/1.258, allocations: 52.5 kB / 1.322 GB, free: 9.742 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.562e-05/1.258, allocations: 91.02 kB / 1.322 GB, free: 9.645 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/1.258, allocations: 30.42 kB / 1.323 GB, free: 9.613 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.227e-05/1.258, allocations: 87.31 kB / 1.323 GB, free: 9.527 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/1.258, allocations: 47.41 kB / 1.323 GB, free: 9.496 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.414e-05/1.258, allocations: 28.52 kB / 1.323 GB, free: 9.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001235/1.258, allocations: 326.5 kB / 1.323 GB, free: 9.16 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.48e-05/1.258, allocations: 21.73 kB / 1.323 GB, free: 9.16 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.819e-05/1.258, allocations: 24.95 kB / 1.323 GB, free: 9.16 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/1.258, allocations: 61.81 kB / 1.323 GB, free: 9.148 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/1.258, allocations: 1.25 kB / 1.323 GB, free: 9.148 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002329/1.258, allocations: 102.5 kB / 1.323 GB, free: 9.113 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/1.258, allocations: 7.672 kB / 1.323 GB, free: 9.113 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/1.258, allocations: 0 / 1.323 GB, free: 9.113 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/1.259, allocations: 1.062 kB / 1.323 GB, free: 9.113 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/1.259, allocations: 29.8 kB / 1.323 GB, free: 9.109 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/1.259, allocations: 4.969 kB / 1.323 GB, free: 9.109 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.825e-05/1.259, allocations: 3.375 kB / 1.323 GB, free: 9.109 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/1.259, allocations: 3.781 kB / 1.323 GB, free: 9.109 MB / 1.014 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 0.0001014/1.259, allocations: 119 kB / 1.323 GB, free: 8.992 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/1.259, allocations: 10.47 kB / 1.323 GB, free: 8.984 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/1.259, allocations: 127.2 kB / 1.323 GB, free: 8.926 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/1.259, allocations: 1.188 kB / 1.323 GB, free: 8.926 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/1.259, allocations: 2.016 kB / 1.323 GB, free: 8.926 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/1.259, allocations: 1.25 kB / 1.323 GB, free: 8.926 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000158/1.259, allocations: 177.2 kB / 1.324 GB, free: 8.734 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/1.259, allocations: 6.578 kB / 1.324 GB, free: 8.73 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/1.26, allocations: 25.7 kB / 1.324 GB, free: 8.73 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/1.26, allocations: 1.219 kB / 1.324 GB, free: 8.73 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/1.26, allocations: 1.25 kB / 1.324 GB, free: 8.73 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/1.26, allocations: 1.188 kB / 1.324 GB, free: 8.73 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/1.26, allocations: 0 / 1.324 GB, free: 8.73 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/1.26, allocations: 165.9 kB / 1.324 GB, free: 8.648 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.792e-05/1.26, allocations: 85.64 kB / 1.324 GB, free: 8.555 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/1.26, allocations: 6.484 kB / 1.324 GB, free: 8.555 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/1.26, allocations: 14.52 kB / 1.324 GB, free: 8.551 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.74e-05/1.26, allocations: 7.109 kB / 1.324 GB, free: 8.551 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/1.26, allocations: 6.531 kB / 1.324 GB, free: 8.551 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.262e-05/1.26, allocations: 78.03 kB / 1.324 GB, free: 8.477 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/1.26, allocations: 0 / 1.324 GB, free: 8.477 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003376/1.264, allocations: 0.562 MB / 1.325 GB, free: 8.457 MB / 1.014 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.004259/1.268, allocations: 0.9416 MB / 1.325 GB, free: 7.816 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002484/1.268, allocations: 62.02 kB / 1.326 GB, free: 7.816 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.268, allocations: 0 / 1.326 GB, free: 7.816 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 6.911e-05/1.268, allocations: 40.28 kB / 1.326 GB, free: 7.812 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/1.268, allocations: 7.969 kB / 1.326 GB, free: 7.812 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/1.271, allocations: 1.54 MB / 1.327 GB, free: 6.562 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/1.271, allocations: 0.6953 MB / 1.328 GB, free: 5.859 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.687e-05/1.271, allocations: 24.22 kB / 1.328 GB, free: 5.848 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/1.271, allocations: 23.64 kB / 1.328 GB, free: 5.84 MB / 1.014 GB Notification: Performance of SimCode: time 4.01e-07/1.271, allocations: 0 / 1.328 GB, free: 5.84 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05726/1.329, allocations: 25.45 MB / 1.353 GB, free: 10.2 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.513/9.842, allocations: 8.672 kB / 1.353 GB, free: 10.2 MB / 1.029 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[123]=0.244000 " 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