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.001602/0.001602, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002228/0.002228, allocations: 193.5 kB / 16.25 MB, free: 6.621 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.458/1.458, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.412/2.412, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 71.88 kB / 0.812 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7704/0.7717, allocations: 140.4 MB / 0.9491 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002284/0.7741, allocations: 1.328 MB / 0.9504 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002803/0.7769, allocations: 3.232 MB / 0.9535 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.244e-05/0.7769, allocations: 0 / 0.9535 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.447e-05/0.777, allocations: 0 / 0.9535 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.6e-05/0.777, allocations: 4.875 kB / 0.9535 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004181/0.7775, allocations: 110.9 kB / 0.9536 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.097e-05/0.7775, allocations: 28.8 kB / 0.9537 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.331e-05/0.7776, allocations: 10.31 kB / 0.9537 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.336e-05/0.7776, allocations: 17.44 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.656e-05/0.7777, allocations: 18.17 kB / 0.9537 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.508e-06/0.7777, allocations: 2.656 kB / 0.9537 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.7779, allocations: 80.73 kB / 0.9538 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.348e-05/0.7779, allocations: 6.234 kB / 0.9538 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.778, allocations: 23.67 kB / 0.9538 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.7781, allocations: 73 kB / 0.9539 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.7782, allocations: 0 / 0.9539 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.373e-06/0.7782, allocations: 0 / 0.9539 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.7782, allocations: 1.438 kB / 0.9539 GB, free: 5.312 MB / 0.7169 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.0003208/0.7785, allocations: 343.8 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.7785, allocations: 8.844 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.052e-05/0.7786, allocations: 6 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.293e-05/0.7787, allocations: 168.3 kB / 0.9544 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.7787, allocations: 6.969 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.7787, allocations: 11.28 kB / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.7789, allocations: 54.83 kB / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.7789, allocations: 0 / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.7789, allocations: 1.062 kB / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.7789, allocations: 0 / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.941e-05/0.779, allocations: 19.14 kB / 0.9545 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.7791, allocations: 169.5 kB / 0.9546 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.929e-05/0.7792, allocations: 56.88 kB / 0.9547 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.608e-05/0.7792, allocations: 11.3 kB / 0.9547 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005437/0.7798, allocations: 0.6016 MB / 0.9553 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.436e-05/0.7798, allocations: 32.5 kB / 0.9553 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.7798, allocations: 0 / 0.9553 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000497/0.7803, allocations: 307 kB / 0.9556 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.968e-05/0.7803, allocations: 52.5 kB / 0.9557 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.88e-05/0.7804, allocations: 102.2 kB / 0.9558 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.988e-06/0.7804, allocations: 31.55 kB / 0.9558 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.284e-05/0.7804, allocations: 84.05 kB / 0.9559 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.7804, allocations: 27.45 kB / 0.9559 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.7805, allocations: 24.62 kB / 0.9559 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.08e-05/0.7805, allocations: 321.1 kB / 0.9562 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.815e-05/0.7806, allocations: 15.98 kB / 0.9562 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.981e-05/0.7806, allocations: 48.48 kB / 0.9563 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.052e-05/0.7807, allocations: 75.16 kB / 0.9564 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.7807, allocations: 3.938 kB / 0.9564 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001218/0.7808, allocations: 95.23 kB / 0.9565 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.7808, allocations: 9.656 kB / 0.9565 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.7808, allocations: 1.344 kB / 0.9565 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.7809, allocations: 1.344 kB / 0.9565 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.361e-05/0.7809, allocations: 24.55 kB / 0.9565 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.7809, allocations: 5.938 kB / 0.9565 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.693e-05/0.781, allocations: 10.47 kB / 0.9565 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.781, allocations: 4.344 kB / 0.9565 GB, free: 2.531 MB / 0.7169 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 5.101e-05/0.7811, allocations: 117.1 kB / 0.9566 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.7811, allocations: 2.219 kB / 0.9566 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.7811, allocations: 13.14 kB / 0.9566 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7811, allocations: 1.188 kB / 0.9566 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.7811, allocations: 4 kB / 0.9566 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.7811, allocations: 7.938 kB / 0.9567 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.7813, allocations: 174.7 kB / 0.9568 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7813, allocations: 0 / 0.9568 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.287e-05/0.7814, allocations: 13.62 kB / 0.9568 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.7814, allocations: 0 / 0.9568 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.7815, allocations: 9.328 kB / 0.9568 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.7815, allocations: 0 / 0.9568 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.7815, allocations: 0 / 0.9568 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001373/0.7816, allocations: 181.3 kB / 0.957 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.884e-05/0.7816, allocations: 83.52 kB / 0.9571 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.7817, allocations: 1.188 kB / 0.9571 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.7818, allocations: 6.406 kB / 0.9571 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.007e-05/0.7818, allocations: 10.39 kB / 0.9571 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.7818, allocations: 6.281 kB / 0.9571 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.908e-05/0.7818, allocations: 78.12 kB / 0.9572 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7818, allocations: 0 / 0.9572 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002489/0.7821, allocations: 14.16 kB / 0.9572 GB, free: 1.816 MB / 0.7169 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.0001077/0.7822, allocations: 112.4 kB / 0.9573 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001184/0.7823, allocations: 51.14 kB / 0.9574 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.7823, allocations: 3.938 kB / 0.9574 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.371e-05/0.7824, allocations: 15.84 kB / 0.9574 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.7827, allocations: 3.219 kB / 0.9574 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004987/0.7832, allocations: 327.7 kB / 0.9577 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.7833, allocations: 0.6819 MB / 0.9584 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.373e-05/0.7833, allocations: 18.55 kB / 0.9584 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.104e-05/0.7834, allocations: 11.81 kB / 0.9584 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7834, allocations: 0 / 0.9584 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of Templates: time 0.002518/0.7859, allocations: 0.6171 MB / 0.959 GB, free: 376 kB / 0.7169 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