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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001613/0.001613, allocations: 107.1 kB / 16.27 MB, free: 6.41 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.001772/0.001773, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.464/1.464, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.784/2.784, allocations: 482.4 MB / 0.7553 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001968, allocations: 63.91 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8786/0.8806, allocations: 162.2 MB / 1.083 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002565/0.8832, allocations: 1.432 MB / 1.084 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006463/0.8838, allocations: 389.5 kB / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.8839, allocations: 0.6562 kB / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.321e-05/0.8839, allocations: 0 / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.501e-05/0.884, allocations: 5.344 kB / 1.085 GB, free: 384 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004278/0.8844, allocations: 117.1 kB / 1.085 GB, free: 340 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.071e-05/0.8845, allocations: 22.05 kB / 1.085 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.617e-05/0.8846, allocations: 3.734 kB / 1.085 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.959e-05/0.8846, allocations: 21.02 kB / 1.085 GB, free: 316 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.005e-05/0.8847, allocations: 14.48 kB / 1.085 GB, free: 308 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.8847, allocations: 2.375 kB / 1.085 GB, free: 308 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004212/0.8851, allocations: 274.5 kB / 1.085 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.552e-05/0.8851, allocations: 6.469 kB / 1.085 GB, free: 236 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.988e-05/0.8852, allocations: 11.67 kB / 1.085 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.8854, allocations: 106 kB / 1.085 GB, free: 192 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.8854, allocations: 1.125 kB / 1.085 GB, free: 192 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8854, allocations: 0 / 1.085 GB, free: 192 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.8854, allocations: 0.6562 kB / 1.085 GB, free: 192 kB / 0.8262 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.0004788/0.8859, allocations: 366.8 kB / 1.086 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.8859, allocations: 9.75 kB / 1.086 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.185e-05/0.886, allocations: 3.109 kB / 1.086 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.8861, allocations: 166.9 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.8862, allocations: 9.688 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.8862, allocations: 5.688 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.8864, allocations: 50.64 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.8864, allocations: 192 / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.8864, allocations: 7.938 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.8864, allocations: 1.438 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.8866, allocations: 36.7 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003571/0.887, allocations: 245.2 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.8871, allocations: 45.69 kB / 1.086 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.089e-05/0.8872, allocations: 23.38 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007512/0.888, allocations: 463.2 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.888, allocations: 39.78 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 2.966e-06/0.888, allocations: 0 / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0003867/0.8884, allocations: 81.39 kB / 1.087 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.8885, allocations: 56.16 kB / 1.087 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.488e-05/0.8886, allocations: 104.5 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.8886, allocations: 29.83 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.11e-05/0.8887, allocations: 82.83 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.8887, allocations: 6.016 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.8887, allocations: 16.12 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.8889, allocations: 314.3 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.889, allocations: 18.08 kB / 1.087 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.577e-05/0.8891, allocations: 14.14 kB / 1.087 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.8892, allocations: 49.36 kB / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.8893, allocations: 0.9375 kB / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002174/0.8895, allocations: 72.02 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.8895, allocations: 6.078 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.8895, allocations: 1.031 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.8895, allocations: 4.031 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.393e-05/0.8896, allocations: 8.531 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.8896, allocations: 4.828 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.735e-05/0.8897, allocations: 6.062 kB / 1.087 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.8897, allocations: 1.375 kB / 1.087 GB, free: 13.97 MB / 0.8419 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.693e-05/0.8898, allocations: 116.3 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.8898, allocations: 2.125 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.8901, allocations: 77.06 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.8901, allocations: 2 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.8901, allocations: 0 / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.8901, allocations: 0 / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.8903, allocations: 166 kB / 1.088 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8903, allocations: 0 / 1.088 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.001e-05/0.8904, allocations: 13.88 kB / 1.088 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.8904, allocations: 0 / 1.088 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.8904, allocations: 5.5 kB / 1.088 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.8904, allocations: 8.031 kB / 1.088 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.8904, allocations: 1.219 kB / 1.088 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002758/0.8907, allocations: 171.1 kB / 1.088 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.48e-05/0.8908, allocations: 87.02 kB / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.8908, allocations: 1.766 kB / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.864e-05/0.8909, allocations: 10.02 kB / 1.088 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.8909, allocations: 2.562 kB / 1.088 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.8909, allocations: 0.5625 kB / 1.088 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.356e-05/0.891, allocations: 86.27 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.891, allocations: 0 / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000234/0.8912, allocations: 17.61 kB / 1.088 GB, free: 13.25 MB / 0.8419 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.0001691/0.8914, allocations: 105.1 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002289/0.8916, allocations: 41.39 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.8916, allocations: 0 / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.374e-05/0.8917, allocations: 24 kB / 1.088 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.892, allocations: 7.281 kB / 1.088 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/0.8923, allocations: 135 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.8927, allocations: 0.6816 MB / 1.089 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.567e-05/0.8927, allocations: 13.31 kB / 1.089 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.8927, allocations: 0 / 1.089 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of Templates: time 0.0024/0.8951, allocations: 0.7018 MB / 1.09 GB, free: 12.25 MB / 0.8419 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=400 -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