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.005979/0.005979, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001374/0.001374, allocations: 197.3 kB / 16.68 MB, free: 5.977 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.635/2.635, allocations: 437 MB / 0.7105 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 1.018 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3401, allocations: 151.6 MB / 1.167 GB, free: 6.938 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002594/0.3427, allocations: 1.258 MB / 1.168 GB, free: 5.664 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.004012/0.3467, allocations: 3.256 MB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.931e-05/0.3468, allocations: 0 / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.92e-05/0.3468, allocations: 0 / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.833e-05/0.3469, allocations: 11.92 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006049/0.3475, allocations: 107.5 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.28e-05/0.3476, allocations: 39.8 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.134e-05/0.3477, allocations: 7.984 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.145e-05/0.3477, allocations: 11.98 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.975e-05/0.3478, allocations: 19.92 kB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.3478, allocations: 0 / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.3481, allocations: 79.8 kB / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.3481, allocations: 11.98 kB / 1.171 GB, free: 2.105 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.848e-05/0.3482, allocations: 15.94 kB / 1.171 GB, free: 2.09 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.3484, allocations: 75.72 kB / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3484, allocations: 0 / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3484, allocations: 0 / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.3484, allocations: 3.938 kB / 1.171 GB, free: 2.012 MB / 0.92 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.0004424/0.3488, allocations: 339.4 kB / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3489, allocations: 12.03 kB / 1.172 GB, free: 1.621 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.349, allocations: 8.938 kB / 1.172 GB, free: 1.613 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.3491, allocations: 168.4 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.3491, allocations: 4.359 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.3492, allocations: 8.328 kB / 1.172 GB, free: 1.398 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.3493, allocations: 57.8 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.3494, allocations: 0 / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3494, allocations: 4 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3494, allocations: 0 / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.596e-05/0.3494, allocations: 23.91 kB / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000176/0.3496, allocations: 173.6 kB / 1.172 GB, free: 1.09 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.052e-05/0.3497, allocations: 54.55 kB / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.377e-05/0.3498, allocations: 16.86 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007247/0.3505, allocations: 0.5946 MB / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.3505, allocations: 42.5 kB / 1.173 GB, free: 260 kB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.173e-06/0.3506, allocations: 4 kB / 1.173 GB, free: 256 kB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.000603/0.3512, allocations: 298.6 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.3512, allocations: 51.41 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.124e-05/0.3513, allocations: 101.8 kB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.3513, allocations: 29.7 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.944e-05/0.3514, allocations: 88.09 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.3514, allocations: 27.75 kB / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.3514, allocations: 29.7 kB / 1.173 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.724e-05/0.3515, allocations: 318.8 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.805e-05/0.3516, allocations: 15.98 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.043e-05/0.3516, allocations: 49.14 kB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.963e-05/0.3517, allocations: 73.03 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3517, allocations: 4 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001342/0.3519, allocations: 97.5 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.3519, allocations: 4 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3519, allocations: 8.125 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3519, allocations: 288 / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.35e-05/0.352, allocations: 19.98 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.352, allocations: 4 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.723e-05/0.352, allocations: 3.938 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.3521, allocations: 11.94 kB / 1.174 GB, free: 14.9 MB / 0.9356 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 7.757e-05/0.3521, allocations: 113.8 kB / 1.174 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.3522, allocations: 11.98 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.3522, allocations: 11.95 kB / 1.174 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3522, allocations: 7.938 kB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3522, allocations: 0 / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3522, allocations: 3.938 kB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.3525, allocations: 173.6 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3525, allocations: 4 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.039e-05/0.3526, allocations: 12.44 kB / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3526, allocations: 0 / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.3526, allocations: 0 / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.3526, allocations: 7.984 kB / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3526, allocations: 0 / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.3528, allocations: 179.4 kB / 1.174 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-05/0.3528, allocations: 85.14 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.3529, allocations: 4 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.601e-05/0.353, allocations: 0 / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.962e-05/0.353, allocations: 7.984 kB / 1.175 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.353, allocations: 3.938 kB / 1.175 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.824e-05/0.353, allocations: 83.28 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3531, allocations: 0 / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002453/0.3533, allocations: 16 kB / 1.175 GB, free: 14.09 MB / 0.9356 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.0001362/0.3534, allocations: 99.25 kB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001325/0.3536, allocations: 47.86 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3536, allocations: 0 / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.921e-05/0.3536, allocations: 15.98 kB / 1.175 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3539, allocations: 8 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005785/0.3545, allocations: 330.3 kB / 1.175 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.3548, allocations: 0.6807 MB / 1.176 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.532e-05/0.3548, allocations: 11.98 kB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.264e-05/0.3548, allocations: 11.44 kB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.3548, allocations: 0 / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of Templates: time 0.002805/0.3577, allocations: 0.6219 MB / 1.176 GB, free: 12.21 MB / 0.9356 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches