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.001638/0.001638, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001718/0.001718, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.483/1.483, allocations: 222.9 MB / 241 MB, free: 14.99 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.27/2.27, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 70.36 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.35, allocations: 140.4 MB / 0.9511 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002431/0.3525, allocations: 1.256 MB / 0.9523 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003664/0.3562, allocations: 3.274 MB / 0.9555 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.457e-05/0.3563, allocations: 3.938 kB / 0.9555 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.522e-05/0.3563, allocations: 3.938 kB / 0.9555 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.21e-05/0.3564, allocations: 3.938 kB / 0.9555 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.3569, allocations: 103.5 kB / 0.9556 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.375e-05/0.3569, allocations: 43.89 kB / 0.9557 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.344e-05/0.357, allocations: 0 / 0.9557 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.787e-05/0.357, allocations: 19.94 kB / 0.9557 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.865e-05/0.3571, allocations: 15.91 kB / 0.9557 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.3571, allocations: 4 kB / 0.9557 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.3573, allocations: 75.81 kB / 0.9558 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.3574, allocations: 11.98 kB / 0.9558 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.3574, allocations: 23.86 kB / 0.9558 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.3576, allocations: 67.84 kB / 0.9559 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3576, allocations: 0 / 0.9559 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3576, allocations: 0 / 0.9559 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.3576, allocations: 8 kB / 0.9559 GB, free: 3.164 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.0003985/0.358, allocations: 340.7 kB / 0.9562 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.3581, allocations: 8.031 kB / 0.9562 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.3582, allocations: 12.92 kB / 0.9562 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.3583, allocations: 168.3 kB / 0.9564 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.3583, allocations: 4.375 kB / 0.9564 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.3584, allocations: 8.281 kB / 0.9564 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.3585, allocations: 65.8 kB / 0.9565 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3585, allocations: 0 / 0.9565 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.3585, allocations: 3.938 kB / 0.9565 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.3585, allocations: 0 / 0.9565 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.236e-05/0.3586, allocations: 19.98 kB / 0.9565 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001972/0.3588, allocations: 165.7 kB / 0.9567 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.3589, allocations: 46.5 kB / 0.9567 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.491e-05/0.359, allocations: 20.84 kB / 0.9567 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007391/0.3597, allocations: 0.5988 MB / 0.9573 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.3598, allocations: 30.56 kB / 0.9573 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.3598, allocations: 0 / 0.9573 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0005604/0.3603, allocations: 306.1 kB / 0.9576 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.3604, allocations: 59.34 kB / 0.9577 GB, free: 1 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.819e-05/0.3605, allocations: 101.8 kB / 0.9578 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.3605, allocations: 25.7 kB / 0.9578 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.3605, allocations: 88.05 kB / 0.9579 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.3606, allocations: 27.64 kB / 0.9579 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.3606, allocations: 21.72 kB / 0.9579 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3607, allocations: 322.8 kB / 0.9582 GB, free: 400 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.515e-05/0.3608, allocations: 12 kB / 0.9583 GB, free: 388 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.856e-05/0.3608, allocations: 57.08 kB / 0.9583 GB, free: 312 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.961e-05/0.3609, allocations: 73.08 kB / 0.9584 GB, free: 220 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3609, allocations: 4 kB / 0.9584 GB, free: 216 kB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001277/0.361, allocations: 93.47 kB / 0.9585 GB, free: 116 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3611, allocations: 11.98 kB / 0.9585 GB, free: 104 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3611, allocations: 3.938 kB / 0.9585 GB, free: 100 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3611, allocations: 4 kB / 0.9585 GB, free: 96 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.234e-05/0.3612, allocations: 19.94 kB / 0.9585 GB, free: 76 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.3612, allocations: 0 / 0.9585 GB, free: 76 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.808e-05/0.3612, allocations: 7.938 kB / 0.9585 GB, free: 68 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-06/0.3613, allocations: 16.06 kB / 0.9585 GB, free: 52 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.448e-05/0.3614, allocations: 121.8 kB / 0.9586 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.3614, allocations: 0 / 0.9586 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.3614, allocations: 7.969 kB / 0.9587 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3614, allocations: 4 kB / 0.9587 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3615, allocations: 0 / 0.9587 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3615, allocations: 4.375 kB / 0.9587 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.3617, allocations: 173.7 kB / 0.9588 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3617, allocations: 0 / 0.9588 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.644e-05/0.3618, allocations: 23.98 kB / 0.9588 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3618, allocations: 0 / 0.9588 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3618, allocations: 4 kB / 0.9589 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3618, allocations: 0 / 0.9589 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3618, allocations: 0 / 0.9589 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001778/0.362, allocations: 175.3 kB / 0.959 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.939e-05/0.3621, allocations: 85.52 kB / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.3621, allocations: 0 / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.3622, allocations: 8 kB / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.608e-05/0.3622, allocations: 3.984 kB / 0.9591 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.3623, allocations: 11.94 kB / 0.9591 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.396e-05/0.3623, allocations: 79.27 kB / 0.9592 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3623, allocations: 0 / 0.9592 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002366/0.3625, allocations: 12 kB / 0.9592 GB, free: 15.25 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.0001285/0.3627, allocations: 107.2 kB / 0.9593 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001185/0.3629, allocations: 47.92 kB / 0.9594 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3629, allocations: 0 / 0.9594 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.526e-05/0.3629, allocations: 15.94 kB / 0.9594 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.3632, allocations: 10.03 kB / 0.9594 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005656/0.3638, allocations: 314.6 kB / 0.9597 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.364, allocations: 0.6846 MB / 0.9604 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.468e-05/0.3641, allocations: 8 kB / 0.9604 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.419e-05/0.3641, allocations: 15.38 kB / 0.9604 GB, free: 14 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.3641, allocations: 0 / 0.9604 GB, free: 14 MB / 0.7481 GB Notification: Performance of Templates: time 0.002775/0.3669, allocations: 0.6196 MB / 0.961 GB, free: 13.39 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 cvode -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