Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: 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_9_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_9_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.007732/0.007732, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001662/0.001662, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.55/2.55, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 65.64 kB / 0.9508 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3324, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002793/0.3352, allocations: 1.269 MB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00426/0.3395, allocations: 3.254 MB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.452e-05/0.3395, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.095e-05/0.3396, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.449e-05/0.3397, allocations: 7.922 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006117/0.3403, allocations: 103.5 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.428e-05/0.3404, allocations: 43.83 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.038e-05/0.3404, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.732e-05/0.3405, allocations: 27.92 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.195e-05/0.3406, allocations: 15.97 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.3406, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002609/0.3409, allocations: 75.81 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.3409, allocations: 15.92 kB / 1.093 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.036e-05/0.3409, allocations: 11.88 kB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.3411, allocations: 67.84 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3412, allocations: 3.938 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3412, allocations: 0 / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.3412, allocations: 0 / 1.093 GB, free: 12.6 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004881/0.3417, allocations: 355.3 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3417, allocations: 12.03 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.3418, allocations: 8.891 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.342, allocations: 160.4 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.342, allocations: 8.375 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.342, allocations: 384 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001394/0.3422, allocations: 57.8 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3422, allocations: 4 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.3422, allocations: 7.938 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.3422, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.649e-05/0.3423, allocations: 19.97 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001888/0.3425, allocations: 165.6 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.3426, allocations: 54.61 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.351e-05/0.3426, allocations: 20.84 kB / 1.094 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007914/0.3434, allocations: 0.5985 MB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3435, allocations: 34.56 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.3435, allocations: 0 / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006392/0.3441, allocations: 295 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3442, allocations: 55.41 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.903e-05/0.3443, allocations: 113.8 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.3443, allocations: 25.7 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.513e-05/0.3443, allocations: 84.09 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.3444, allocations: 27.78 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.245e-05/0.3444, allocations: 29.67 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3446, allocations: 322.8 kB / 1.095 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.632e-05/0.3446, allocations: 11.94 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.15e-05/0.3447, allocations: 57.14 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.66e-05/0.3448, allocations: 81.02 kB / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3448, allocations: 0 / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001347/0.3449, allocations: 93.55 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3449, allocations: 4 kB / 1.095 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3449, allocations: 4 kB / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.345, allocations: 0 / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.748e-05/0.345, allocations: 20 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.3451, allocations: 11.92 kB / 1.095 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.057e-05/0.3451, allocations: 3.938 kB / 1.095 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.3451, allocations: 4 kB / 1.095 GB, free: 9.484 MB / 0.8575 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 8.133e-05/0.3452, allocations: 118 kB / 1.095 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.3453, allocations: 11.89 kB / 1.095 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.286e-05/0.3453, allocations: 7.969 kB / 1.095 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3453, allocations: 0 / 1.095 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3453, allocations: 4 kB / 1.095 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3453, allocations: 3.938 kB / 1.095 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.3456, allocations: 173.7 kB / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3456, allocations: 0 / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.483e-05/0.3457, allocations: 15.98 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3457, allocations: 0 / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.3457, allocations: 4 kB / 1.096 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3457, allocations: 3.938 kB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3457, allocations: 4.281 kB / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.3459, allocations: 171.5 kB / 1.096 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.253e-05/0.346, allocations: 89.14 kB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.346, allocations: 4 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.3461, allocations: 4.031 kB / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.829e-05/0.3461, allocations: 4 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.3462, allocations: 15.88 kB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.852e-05/0.3462, allocations: 75.28 kB / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3462, allocations: 0 / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002464/0.3465, allocations: 16 kB / 1.096 GB, free: 8.676 MB / 0.8575 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.0001483/0.3466, allocations: 107.2 kB / 1.096 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001315/0.3468, allocations: 40.11 kB / 1.096 GB, free: 8.52 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3468, allocations: 4.062 kB / 1.096 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.631e-05/0.3468, allocations: 16 kB / 1.096 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.3471, allocations: 13.39 kB / 1.096 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005861/0.3477, allocations: 318 kB / 1.096 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.348, allocations: 0.6846 MB / 1.097 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.779e-05/0.348, allocations: 8 kB / 1.097 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.3481, allocations: 11.44 kB / 1.097 GB, free: 7.422 MB / 0.8575 GB Notification: Performance of SimCode: time 3.01e-07/0.3481, allocations: 0 / 1.097 GB, free: 7.422 MB / 0.8575 GB Notification: Performance of Templates: time 0.00293/0.351, allocations: 0.6293 MB / 1.098 GB, free: 6.797 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches