Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_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.001019/0.001023, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.001264/0.001263, allocations: 177.3 kB / 15.94 MB, free: 228 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.564/1.564, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.761/2.761, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004615/0.0004619, allocations: 12 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9553/0.9557, allocations: 153.6 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00204/0.9578, allocations: 1.161 MB / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008779/0.9587, allocations: 359.9 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.833e-05/0.9588, allocations: 4 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.649e-05/0.9588, allocations: 0 / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.014e-05/0.9589, allocations: 11.98 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.9592, allocations: 70.66 kB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.953e-05/0.9593, allocations: 15.92 kB / 1.022 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.368e-05/0.9594, allocations: 4 kB / 1.022 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.698e-05/0.9595, allocations: 11.97 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.374e-05/0.9595, allocations: 15.94 kB / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.9595, allocations: 0 / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004212/0.96, allocations: 259.6 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.96, allocations: 3.984 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.351e-05/0.96, allocations: 33.7 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.9602, allocations: 67.88 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.9602, allocations: 0 / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.823e-06/0.9602, allocations: 0 / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.9602, allocations: 0 / 1.023 GB, free: 15.07 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.0005609/0.9608, allocations: 361.3 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/0.9608, allocations: 15.98 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.293e-05/0.9609, allocations: 0 / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.9611, allocations: 182.8 kB / 1.023 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.9611, allocations: 4 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.9611, allocations: 0 / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.9613, allocations: 61.62 kB / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.9614, allocations: 0 / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.9614, allocations: 0 / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.9614, allocations: 4 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.9616, allocations: 39.97 kB / 1.023 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005312/0.9621, allocations: 252.9 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.9623, allocations: 46.5 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009138/0.9632, allocations: 469.5 kB / 1.024 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.9632, allocations: 30.56 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/0.9633, allocations: 4 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0004267/0.9637, allocations: 97.64 kB / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.9637, allocations: 63.22 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.639e-05/0.9638, allocations: 106 kB / 1.024 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.838e-05/0.9639, allocations: 29.7 kB / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.964, allocations: 88.14 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.964, allocations: 3.906 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-06/0.964, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002199/0.9642, allocations: 310.8 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.735e-05/0.9643, allocations: 27.97 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.07e-05/0.9644, allocations: 19.98 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.76e-05/0.9645, allocations: 23.98 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.9645, allocations: 0 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002132/0.9647, allocations: 89.58 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.9648, allocations: 4 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.9648, allocations: 0 / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.9648, allocations: 0 / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.344e-05/0.9649, allocations: 15.92 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.9649, allocations: 0 / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.886e-05/0.965, allocations: 12.03 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.965, allocations: 0 / 1.025 GB, free: 12.45 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.214e-05/0.9651, allocations: 117.8 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.9651, allocations: 3.953 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.9654, allocations: 85.19 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.9654, allocations: 0 / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.9654, allocations: 0 / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.9654, allocations: 4 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.9656, allocations: 157.7 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9656, allocations: 0 / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.566e-05/0.9656, allocations: 8.25 kB / 1.025 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.9656, allocations: 7.969 kB / 1.025 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.9657, allocations: 8 kB / 1.025 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.9657, allocations: 7.938 kB / 1.025 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.9657, allocations: 0 / 1.025 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.9659, allocations: 171.5 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-05/0.966, allocations: 85.02 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.966, allocations: 3.953 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.9661, allocations: 4 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.9661, allocations: 11.92 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.9661, allocations: 0 / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.208e-05/0.9662, allocations: 83.28 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9662, allocations: 0 / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002247/0.9664, allocations: 19.97 kB / 1.026 GB, free: 11.59 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.0001817/0.9666, allocations: 111.2 kB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.9668, allocations: 51.84 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.9668, allocations: 4.062 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.461e-05/0.9669, allocations: 27.97 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.9672, allocations: 4 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002804/0.9674, allocations: 108.7 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/0.9679, allocations: 0.681 MB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.898e-05/0.968, allocations: 4 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.968, allocations: 7.438 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of SimCode: time 4.21e-07/0.968, allocations: 0 / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of Templates: time 0.003818/0.9719, allocations: 0.6272 MB / 1.027 GB, free: 9.91 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches