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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001567/0.001567, allocations: 109.8 kB / 16.41 MB, free: 6.492 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.00181/0.00181, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.616/2.616, allocations: 461.9 MB / 0.7354 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 67.91 kB / 1.055 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8369/0.8384, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003044/0.8415, allocations: 1.447 MB / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007993/0.8423, allocations: 390.6 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.92e-05/0.8424, allocations: 0 / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.386e-05/0.8424, allocations: 3.938 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.209e-05/0.8425, allocations: 0 / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005533/0.8431, allocations: 119.6 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.654e-05/0.8432, allocations: 27.92 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.573e-05/0.8433, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.372e-05/0.8433, allocations: 15.92 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.445e-05/0.8434, allocations: 8 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.8434, allocations: 4 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004359/0.8438, allocations: 283.6 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.985e-05/0.8439, allocations: 4 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.725e-05/0.8439, allocations: 15.92 kB / 1.211 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.8442, allocations: 103.8 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.8442, allocations: 0 / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.713e-06/0.8442, allocations: 0 / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.8442, allocations: 0 / 1.211 GB, free: 11.25 MB / 0.9356 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.0005454/0.8447, allocations: 367.2 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.8448, allocations: 8.031 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.647e-05/0.8449, allocations: 4.938 kB / 1.211 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.845, allocations: 164.3 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.845, allocations: 8.375 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.845, allocations: 384 / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001934/0.8452, allocations: 58.11 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/0.8452, allocations: 192 / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.8453, allocations: 7.938 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.8453, allocations: 0 / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.8455, allocations: 35.95 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003578/0.8458, allocations: 253 kB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.846, allocations: 42.5 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.805e-05/0.8461, allocations: 20.91 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000685/0.8468, allocations: 465.4 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.8468, allocations: 30.56 kB / 1.212 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.8468, allocations: 0 / 1.212 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0004168/0.8472, allocations: 85.73 kB / 1.212 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.8473, allocations: 55.34 kB / 1.212 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.988e-05/0.8474, allocations: 105.8 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.8474, allocations: 25.7 kB / 1.212 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.8474, allocations: 89.97 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.8475, allocations: 3.906 kB / 1.213 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.8475, allocations: 17.72 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.8476, allocations: 314.9 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.75e-05/0.8477, allocations: 19.98 kB / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.576e-05/0.8478, allocations: 19.92 kB / 1.213 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.848, allocations: 36.83 kB / 1.213 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.848, allocations: 0 / 1.213 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002401/0.8482, allocations: 81.56 kB / 1.213 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.8483, allocations: 4 kB / 1.213 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.8483, allocations: 0 / 1.213 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.8483, allocations: 0 / 1.213 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.573e-05/0.8484, allocations: 11.98 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.8484, allocations: 0 / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.942e-05/0.8484, allocations: 7.984 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-06/0.8485, allocations: 256 / 1.213 GB, free: 8.641 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.336e-05/0.8485, allocations: 117.8 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/0.8486, allocations: 4 kB / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002622/0.8489, allocations: 73.19 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.8489, allocations: 7.984 kB / 1.213 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.8489, allocations: 0 / 1.213 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.8489, allocations: 0 / 1.213 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.8491, allocations: 161.6 kB / 1.213 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.8491, allocations: 0 / 1.213 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.935e-05/0.8492, allocations: 16.02 kB / 1.213 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.8492, allocations: 0 / 1.213 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.8492, allocations: 4 kB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.8492, allocations: 3.938 kB / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.8492, allocations: 0 / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.8495, allocations: 171.4 kB / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.8495, allocations: 84.95 kB / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.8496, allocations: 0 / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.859e-05/0.8496, allocations: 11.98 kB / 1.214 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.964e-05/0.8497, allocations: 3.938 kB / 1.214 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.8497, allocations: 4 kB / 1.214 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.253e-05/0.8498, allocations: 83.27 kB / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.8498, allocations: 0 / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002454/0.85, allocations: 16 kB / 1.214 GB, free: 7.785 MB / 0.9356 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 (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.0001783/0.8502, allocations: 107.3 kB / 1.214 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000228/0.8504, allocations: 43.89 kB / 1.214 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8505, allocations: 0 / 1.214 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.779e-05/0.8505, allocations: 19.98 kB / 1.214 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.8509, allocations: 6.281 kB / 1.214 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003111/0.8512, allocations: 143.3 kB / 1.214 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.8515, allocations: 0.6768 MB / 1.215 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.656e-05/0.8515, allocations: 7.438 kB / 1.215 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.8515, allocations: 0 / 1.215 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of Templates: time 0.0022/0.8537, allocations: 0.7128 MB / 1.215 GB, free: 6.012 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches