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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001128/0.001128, allocations: 111.9 kB / 16.37 MB, free: 6.016 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.001229/0.001229, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.256/2.256, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001253, allocations: 68.69 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2474, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002249/0.2497, allocations: 1.255 MB / 0.9523 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003507/0.2532, allocations: 3.278 MB / 0.9555 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.434e-05/0.2532, allocations: 0 / 0.9555 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.781e-05/0.2533, allocations: 0 / 0.9555 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.01e-05/0.2533, allocations: 11.94 kB / 0.9556 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.2538, allocations: 107.5 kB / 0.9557 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.864e-05/0.2539, allocations: 31.92 kB / 0.9557 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.099e-05/0.2539, allocations: 3.984 kB / 0.9557 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.024e-05/0.254, allocations: 19.94 kB / 0.9557 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.787e-05/0.254, allocations: 15.97 kB / 0.9557 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.254, allocations: 4 kB / 0.9557 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002134/0.2543, allocations: 79.75 kB / 0.9558 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.264e-05/0.2543, allocations: 15.91 kB / 0.9558 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.263e-05/0.2543, allocations: 15.94 kB / 0.9558 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.2545, allocations: 63.92 kB / 0.9559 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.2545, allocations: 3.984 kB / 0.9559 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2545, allocations: 0 / 0.9559 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.2545, allocations: 0 / 0.9559 GB, free: 3.137 MB / 0.7325 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.0003847/0.2549, allocations: 347.5 kB / 0.9562 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.255, allocations: 12.03 kB / 0.9562 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.487e-05/0.2551, allocations: 12.88 kB / 0.9563 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.06e-05/0.2552, allocations: 168.3 kB / 0.9564 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.2552, allocations: 4.375 kB / 0.9564 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.2552, allocations: 8.281 kB / 0.9564 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.2553, allocations: 57.73 kB / 0.9565 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.2553, allocations: 4 kB / 0.9565 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.2554, allocations: 4 kB / 0.9565 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2554, allocations: 0 / 0.9565 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.089e-05/0.2554, allocations: 15.98 kB / 0.9565 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001655/0.2556, allocations: 173.6 kB / 0.9567 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.2557, allocations: 50.56 kB / 0.9567 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.521e-05/0.2558, allocations: 20.8 kB / 0.9567 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006672/0.2565, allocations: 0.5907 MB / 0.9573 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.2565, allocations: 34.56 kB / 0.9573 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.342e-06/0.2565, allocations: 4 kB / 0.9574 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0005525/0.2571, allocations: 306.4 kB / 0.9576 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.2571, allocations: 55.41 kB / 0.9577 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.399e-05/0.2572, allocations: 97.84 kB / 0.9578 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.2572, allocations: 29.7 kB / 0.9578 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.2573, allocations: 84.05 kB / 0.9579 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.2573, allocations: 23.66 kB / 0.9579 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.2574, allocations: 33.7 kB / 0.958 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2575, allocations: 314.8 kB / 0.9583 GB, free: 364 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.23e-05/0.2576, allocations: 19.92 kB / 0.9583 GB, free: 344 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.939e-05/0.2576, allocations: 57.08 kB / 0.9583 GB, free: 268 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.323e-05/0.2577, allocations: 73.09 kB / 0.9584 GB, free: 176 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.2577, allocations: 0 / 0.9584 GB, free: 176 kB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001324/0.2579, allocations: 93.45 kB / 0.9585 GB, free: 76 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2579, allocations: 4 kB / 0.9585 GB, free: 72 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.2579, allocations: 8.125 kB / 0.9585 GB, free: 64 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2579, allocations: 0 / 0.9585 GB, free: 64 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.395e-05/0.258, allocations: 23.92 kB / 0.9585 GB, free: 40 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.258, allocations: 4 kB / 0.9585 GB, free: 36 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.856e-05/0.2581, allocations: 7.938 kB / 0.9585 GB, free: 28 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.2581, allocations: 4 kB / 0.9585 GB, free: 24 kB / 0.7325 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 9.336e-05/0.2582, allocations: 113.8 kB / 0.9586 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.2582, allocations: 4 kB / 0.9586 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.233e-05/0.2583, allocations: 11.95 kB / 0.9587 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2583, allocations: 4 kB / 0.9587 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2583, allocations: 0 / 0.9587 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2583, allocations: 7.938 kB / 0.9587 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.2585, allocations: 177.6 kB / 0.9588 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2585, allocations: 0 / 0.9588 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.712e-05/0.2586, allocations: 16.38 kB / 0.9589 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2586, allocations: 0 / 0.9589 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.2586, allocations: 0 / 0.9589 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2587, allocations: 4 kB / 0.9589 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.2587, allocations: 7.984 kB / 0.9589 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.2589, allocations: 175.4 kB / 0.959 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.2589, allocations: 85.52 kB / 0.9591 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.259, allocations: 0 / 0.9591 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.2591, allocations: 4 kB / 0.9591 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.119e-05/0.2591, allocations: 7.984 kB / 0.9591 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.2591, allocations: 7.938 kB / 0.9591 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.143e-05/0.2592, allocations: 83.2 kB / 0.9592 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.453e-06/0.2592, allocations: 0 / 0.9592 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002418/0.2594, allocations: 23.94 kB / 0.9592 GB, free: 15.2 MB / 0.7481 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.0001233/0.2595, allocations: 95.25 kB / 0.9593 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001176/0.2597, allocations: 43.92 kB / 0.9594 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2597, allocations: 0 / 0.9594 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.876e-05/0.2597, allocations: 19.98 kB / 0.9594 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.26, allocations: 4.25 kB / 0.9594 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00076/0.2608, allocations: 314.4 kB / 0.9597 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.2612, allocations: 0.6923 MB / 0.9604 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.466e-05/0.2613, allocations: 7.984 kB / 0.9604 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.912e-05/0.2613, allocations: 11.44 kB / 0.9604 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of SimCode: time 3.6e-07/0.2613, allocations: 0 / 0.9604 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of Templates: time 0.003247/0.2645, allocations: 0.618 MB / 0.961 GB, free: 13.35 MB / 0.7481 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches