Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009707/0.0009707, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001163/0.001163, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 223.3 MB / 240 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.774/2.774, allocations: 437.7 MB / 0.7117 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 12 kB / 0.8722 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8501/0.8505, allocations: 153.8 MB / 1.022 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001927/0.8525, allocations: 1.157 MB / 1.024 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007895/0.8533, allocations: 363.9 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.824e-05/0.8533, allocations: 4 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.732e-05/0.8534, allocations: 0 / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.506e-05/0.8534, allocations: 3.938 kB / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003798/0.8538, allocations: 71.84 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.207e-05/0.8539, allocations: 23.92 kB / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.917e-05/0.854, allocations: 4 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.741e-05/0.8541, allocations: 11.92 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.682e-05/0.8541, allocations: 7.938 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.8541, allocations: 4 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003789/0.8545, allocations: 267.6 kB / 1.024 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.295e-05/0.8545, allocations: 15.92 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.932e-05/0.8546, allocations: 25.7 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.8547, allocations: 75.86 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.8547, allocations: 0 / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8547, allocations: 0 / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.8548, allocations: 0 / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004974/0.8553, allocations: 361.3 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.8553, allocations: 8.031 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.389e-05/0.8554, allocations: 3.906 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.8555, allocations: 179 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.8555, allocations: 0 / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.8556, allocations: 3.938 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.8557, allocations: 61.62 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.8558, allocations: 3.984 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.8558, allocations: 0 / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.8558, allocations: 4 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001609/0.856, allocations: 43.97 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003543/0.8563, allocations: 252.9 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.8565, allocations: 50.5 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.22e-05/0.8566, allocations: 28.89 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006745/0.8572, allocations: 461.5 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.8573, allocations: 30.56 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.8573, allocations: 4 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003699/0.8576, allocations: 97.64 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.8577, allocations: 51.41 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.8578, allocations: 109.8 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.8578, allocations: 25.83 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.8579, allocations: 92.08 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.8579, allocations: 7.906 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-06/0.8579, allocations: 0 / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.858, allocations: 314.8 kB / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.929e-05/0.8581, allocations: 23.98 kB / 1.026 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.951e-05/0.8582, allocations: 23.98 kB / 1.026 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.371e-05/0.8583, allocations: 19.98 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.8583, allocations: 0 / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002022/0.8585, allocations: 89.58 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.8585, allocations: 4 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.8585, allocations: 0 / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.8585, allocations: 0 / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.177e-05/0.8586, allocations: 11.98 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.8586, allocations: 0 / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.894e-05/0.8587, allocations: 19.95 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.8587, allocations: 3.938 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.286e-05/0.8588, allocations: 117.8 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.8588, allocations: 3.953 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002297/0.8591, allocations: 85.19 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.8591, allocations: 0 / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.8591, allocations: 0 / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.8591, allocations: 4 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001673/0.8593, allocations: 157.7 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.8593, allocations: 0 / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.803e-05/0.8593, allocations: 11.98 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-06/0.8594, allocations: 3.953 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.8594, allocations: 32 / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.8594, allocations: 8 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.8594, allocations: 0 / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.8596, allocations: 175.5 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.8597, allocations: 85.02 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.8597, allocations: 3.953 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.017e-05/0.8598, allocations: 8.234 kB / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.475e-05/0.8598, allocations: 4 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.8598, allocations: 4 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.175e-05/0.8599, allocations: 87.27 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8599, allocations: 3.938 kB / 1.027 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002269/0.8601, allocations: 15.94 kB / 1.027 GB, free: 10.52 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002147/0.8604, allocations: 111.3 kB / 1.027 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002193/0.8606, allocations: 51.89 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.8606, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.265e-05/0.8607, allocations: 28.05 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.861, allocations: 4 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002708/0.8613, allocations: 108.7 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.8615, allocations: 0.681 MB / 1.028 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.747e-05/0.8616, allocations: 4 kB / 1.028 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.77e-05/0.8616, allocations: 7.438 kB / 1.028 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.8616, allocations: 0 / 1.028 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of Templates: time 0.003077/0.8647, allocations: 0.6336 MB / 1.029 GB, free: 8.84 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches