Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.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: translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 110.9 kB / 16.41 MB, free: 5.914 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.001491/0.001491, allocations: 190.2 kB / 17.34 MB, free: 5.559 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.528/1.528, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.663/2.663, allocations: 437.1 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 71.88 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.976/0.9783, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002411/0.9808, allocations: 1.264 MB / 1.169 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.004235/0.985, allocations: 3.259 MB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.9851, allocations: 4 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.9851, allocations: 7.875 kB / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.85e-05/0.9852, allocations: 3.938 kB / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.9857, allocations: 107.5 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 8.587e-05/0.9858, allocations: 31.91 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.959e-05/0.9859, allocations: 4 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 4.548e-05/0.9859, allocations: 19.92 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 8.151e-05/0.986, allocations: 23.91 kB / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.986, allocations: 4 kB / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000251/0.9863, allocations: 79.81 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.9863, allocations: 7.984 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 3.365e-05/0.9863, allocations: 15.92 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.9865, allocations: 68.36 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.9865, allocations: 0 / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.082e-06/0.9866, allocations: 0 / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.9866, allocations: 3.938 kB / 1.172 GB, free: 14.93 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.000494/0.9871, allocations: 347.4 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.9871, allocations: 16.92 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.9872, allocations: 8.922 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.9874, allocations: 168.3 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.9874, allocations: 4.375 kB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.9875, allocations: 12.31 kB / 1.173 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.9876, allocations: 53.81 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.9876, allocations: 3.984 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.9876, allocations: 0 / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.9877, allocations: 7.938 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.446e-05/0.9877, allocations: 15.98 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002095/0.9879, allocations: 161.7 kB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/0.9881, allocations: 58.48 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.977e-05/0.9881, allocations: 13.09 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008172/0.9889, allocations: 0.5985 MB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.989, allocations: 42.55 kB / 1.174 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.989, allocations: 0 / 1.174 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0006369/0.9896, allocations: 290.3 kB / 1.174 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.9897, allocations: 55.34 kB / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.113e-05/0.9898, allocations: 97.86 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.9898, allocations: 29.7 kB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.351e-05/0.9899, allocations: 96.09 kB / 1.174 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.9899, allocations: 27.8 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.705e-05/0.99, allocations: 29.7 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.9901, allocations: 318.8 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.221e-05/0.9902, allocations: 11.98 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.96e-05/0.9902, allocations: 49.16 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.9904, allocations: 77.08 kB / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.9904, allocations: 0 / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001488/0.9905, allocations: 97.86 kB / 1.175 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.9905, allocations: 8 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.9906, allocations: 0 / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.9906, allocations: 7.984 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.232e-05/0.9907, allocations: 31.91 kB / 1.175 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.9907, allocations: 8.062 kB / 1.175 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.687e-05/0.9907, allocations: 3.938 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.9907, allocations: 4 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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.0001027/0.9908, allocations: 121.7 kB / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.9909, allocations: 8 kB / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.53e-05/0.9909, allocations: 7.969 kB / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.9909, allocations: 4.375 kB / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.9909, allocations: 0 / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.9909, allocations: 7.922 kB / 1.175 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.9912, allocations: 173.7 kB / 1.175 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.9912, allocations: 3.984 kB / 1.175 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.847e-05/0.9913, allocations: 16 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.9913, allocations: 0 / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.9914, allocations: 0 / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.9914, allocations: 0 / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.9914, allocations: 4 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002095/0.9916, allocations: 183.3 kB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.097e-05/0.9917, allocations: 81.14 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.9917, allocations: 8 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.9918, allocations: 0 / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.361e-05/0.9918, allocations: 4 kB / 1.175 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-06/0.9918, allocations: 3.938 kB / 1.175 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.097e-05/0.9919, allocations: 87.27 kB / 1.175 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9919, allocations: 0 / 1.175 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002378/0.9921, allocations: 12 kB / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,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 (7): * Single equations (assignments): 7 * 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.0001398/0.9923, allocations: 104.8 kB / 1.175 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001436/0.9924, allocations: 39.92 kB / 1.176 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.9924, allocations: 0 / 1.176 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.132e-05/0.9925, allocations: 24.17 kB / 1.176 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.9928, allocations: 10.5 kB / 1.176 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006637/0.9935, allocations: 330.1 kB / 1.176 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.9938, allocations: 0.6807 MB / 1.177 GB, free: 9.762 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.587e-05/0.9939, allocations: 8 kB / 1.177 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.507e-05/0.9939, allocations: 11.44 kB / 1.177 GB, free: 9.746 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.9939, allocations: 3.938 kB / 1.177 GB, free: 9.742 MB / 0.9044 GB Notification: Performance of Templates: time 0.003406/0.9973, allocations: 0.6275 MB / 1.177 GB, free: 9.117 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches