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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001412/0.001412, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001483/0.001483, allocations: 187 kB / 17.34 MB, free: 5.719 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.479/2.479, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 63.91 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8599/0.8614, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002887/0.8644, allocations: 1.447 MB / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008141/0.8652, allocations: 385.9 kB / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.872e-05/0.8653, allocations: 0 / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.178e-05/0.8653, allocations: 3.938 kB / 1.169 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.988e-05/0.8654, allocations: 11.92 kB / 1.169 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005277/0.8659, allocations: 113.3 kB / 1.169 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.772e-05/0.866, allocations: 27.92 kB / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.301e-05/0.8661, allocations: 4 kB / 1.169 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.405e-05/0.8662, allocations: 15.92 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.104e-05/0.8662, allocations: 4 kB / 1.169 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.8663, allocations: 4 kB / 1.169 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004128/0.8667, allocations: 283.6 kB / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.809e-05/0.8667, allocations: 0 / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.011e-05/0.8667, allocations: 19.91 kB / 1.17 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.867, allocations: 103.8 kB / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.867, allocations: 0 / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.784e-06/0.867, allocations: 0 / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.867, allocations: 0 / 1.17 GB, free: 1.426 MB / 0.8887 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.0005368/0.8676, allocations: 363.2 kB / 1.17 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.8676, allocations: 12.92 kB / 1.17 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.498e-05/0.8677, allocations: 4.938 kB / 1.17 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.8678, allocations: 172.3 kB / 1.17 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.8679, allocations: 384 / 1.17 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.8679, allocations: 384 / 1.17 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.8681, allocations: 54.17 kB / 1.17 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.8681, allocations: 192 / 1.17 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.8681, allocations: 3.938 kB / 1.17 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.8681, allocations: 0 / 1.17 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.8683, allocations: 39.95 kB / 1.17 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003499/0.8686, allocations: 249 kB / 1.17 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.8688, allocations: 50.42 kB / 1.171 GB, free: 356 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.736e-05/0.8689, allocations: 16.91 kB / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007502/0.8697, allocations: 465.5 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.8697, allocations: 34.5 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=2): time 1.593e-06/0.8697, allocations: 0 / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2): time 0.0003883/0.8701, allocations: 85.64 kB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.8702, allocations: 59.34 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.397e-05/0.8703, allocations: 101.8 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.8703, allocations: 29.7 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.952e-05/0.8704, allocations: 81.97 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.8704, allocations: 7.906 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.8704, allocations: 17.84 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.8706, allocations: 318.8 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.629e-05/0.8707, allocations: 15.98 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.92e-05/0.8707, allocations: 15.98 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.8709, allocations: 44.89 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.8709, allocations: 0 / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002184/0.8711, allocations: 73.5 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.8711, allocations: 4 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.8712, allocations: 0 / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.8712, allocations: 0 / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.663e-05/0.8713, allocations: 11.98 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.8713, allocations: 3.938 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.106e-05/0.8713, allocations: 12.02 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-06/0.8713, allocations: 256 / 1.172 GB, free: 14.81 MB / 0.9044 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 7.706e-05/0.8714, allocations: 117.8 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.8715, allocations: 0 / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002356/0.8717, allocations: 69.19 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.8717, allocations: 0 / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.8717, allocations: 4 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.8717, allocations: 4.031 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.8719, allocations: 169.6 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.8719, allocations: 4 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.729e-05/0.872, allocations: 7.984 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.872, allocations: 0 / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.872, allocations: 0 / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.872, allocations: 0 / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.872, allocations: 7.938 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.8723, allocations: 167.5 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.8724, allocations: 84.95 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.8724, allocations: 0 / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.662e-05/0.8725, allocations: 7.984 kB / 1.172 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.8725, allocations: 7.938 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.8725, allocations: 0 / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.304e-05/0.8726, allocations: 87.27 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8726, allocations: 7.969 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000257/0.8729, allocations: 16 kB / 1.173 GB, free: 13.96 MB / 0.9044 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.000175/0.873, allocations: 103.2 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002229/0.8733, allocations: 43.89 kB / 1.173 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.8733, allocations: 0 / 1.173 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.688e-05/0.8734, allocations: 24.05 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.8737, allocations: 3.938 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003504/0.874, allocations: 143.2 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.8743, allocations: 0.6807 MB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.628e-05/0.8744, allocations: 7.438 kB / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.8744, allocations: 0 / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of Templates: time 0.002338/0.8767, allocations: 0.7092 MB / 1.174 GB, free: 12.19 MB / 0.9044 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches