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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 99.64 kB / 18.95 MB, free: 2.676 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001918/0.001918, allocations: 204.2 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.386/3.386, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 68.39 kB / 1.186 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3702, allocations: 181.9 MB / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002979/0.3732, allocations: 1.46 MB / 1.365 GB, free: 12.11 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.000839/0.374, allocations: 354.8 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.831e-05/0.3741, allocations: 0 / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.155e-05/0.3741, allocations: 7.938 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.564e-05/0.3742, allocations: 0 / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004807/0.3746, allocations: 115.6 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.095e-05/0.3747, allocations: 27.92 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.239e-05/0.3748, allocations: 3.938 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.553e-05/0.3749, allocations: 15.92 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.038e-05/0.3749, allocations: 15.91 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.3749, allocations: 4 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004452/0.3754, allocations: 259.7 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.3754, allocations: 4 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.652e-05/0.3754, allocations: 11.94 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.3756, allocations: 103.7 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3756, allocations: 0 / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3756, allocations: 0 / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.3757, allocations: 0 / 1.366 GB, free: 11.21 MB / 1.061 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.0004906/0.3761, allocations: 290 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.3762, allocations: 12.03 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.512e-05/0.3762, allocations: 4.938 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.3764, allocations: 118.5 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3764, allocations: 384 / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.3764, allocations: 384 / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.3766, allocations: 54.17 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3766, allocations: 4.188 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.3766, allocations: 3.938 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.3766, allocations: 0 / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.3768, allocations: 35.95 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003151/0.3771, allocations: 192.6 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.3772, allocations: 42.48 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.142e-05/0.3773, allocations: 28.84 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005298/0.3779, allocations: 79.86 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.3779, allocations: 34.56 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.563e-06/0.3779, allocations: 0 / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.000379/0.3783, allocations: 81.64 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.3783, allocations: 51.41 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.491e-05/0.3784, allocations: 105.8 kB / 1.367 GB, free: 9.949 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.3784, allocations: 29.83 kB / 1.367 GB, free: 9.914 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.33e-05/0.3785, allocations: 84.08 kB / 1.367 GB, free: 9.828 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.3785, allocations: 19.88 kB / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.3785, allocations: 9.719 kB / 1.367 GB, free: 9.793 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3787, allocations: 314.8 kB / 1.368 GB, free: 9.477 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.375e-05/0.3787, allocations: 19.92 kB / 1.368 GB, free: 9.457 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.022e-05/0.3788, allocations: 12.23 kB / 1.368 GB, free: 9.445 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.379, allocations: 48.88 kB / 1.368 GB, free: 9.395 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.379, allocations: 4 kB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000223/0.3792, allocations: 73.55 kB / 1.368 GB, free: 9.312 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3792, allocations: 8 kB / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3792, allocations: 0 / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3792, allocations: 0 / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.263e-05/0.3793, allocations: 4 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3793, allocations: 12.02 kB / 1.368 GB, free: 9.289 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.437e-05/0.3794, allocations: 4 kB / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.3794, allocations: 3.938 kB / 1.368 GB, free: 9.281 MB / 1.061 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 9.024e-05/0.3795, allocations: 110.9 kB / 1.368 GB, free: 9.164 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.3795, allocations: 7.938 kB / 1.368 GB, free: 9.156 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002633/0.3798, allocations: 85.23 kB / 1.368 GB, free: 9.059 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3798, allocations: 0 / 1.368 GB, free: 9.059 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3798, allocations: 0 / 1.368 GB, free: 9.059 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3798, allocations: 4.031 kB / 1.368 GB, free: 9.055 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001428/0.3799, allocations: 101.3 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3799, allocations: 0 / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.651e-05/0.38, allocations: 8 kB / 1.368 GB, free: 8.918 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.38, allocations: 3.938 kB / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.38, allocations: 4 kB / 1.368 GB, free: 8.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.38, allocations: 3.984 kB / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.38, allocations: 0 / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002689/0.3803, allocations: 167.4 kB / 1.368 GB, free: 8.727 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.3803, allocations: 7.922 kB / 1.368 GB, free: 8.719 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.3803, allocations: 4 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.663e-05/0.3804, allocations: 4 kB / 1.368 GB, free: 8.711 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.3804, allocations: 11.92 kB / 1.368 GB, free: 8.699 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.3804, allocations: 0 / 1.368 GB, free: 8.699 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.758e-05/0.3805, allocations: 79.28 kB / 1.368 GB, free: 8.621 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3805, allocations: 3.938 kB / 1.368 GB, free: 8.617 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002366/0.3807, allocations: 16 kB / 1.368 GB, free: 8.602 MB / 1.061 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.0001966/0.3809, allocations: 115.2 kB / 1.369 GB, free: 8.48 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002328/0.3811, allocations: 35.91 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3811, allocations: 0 / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.893e-05/0.3812, allocations: 23.97 kB / 1.369 GB, free: 8.422 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.3815, allocations: 4 kB / 1.369 GB, free: 8.418 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003316/0.3819, allocations: 105.5 kB / 1.369 GB, free: 8.289 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.332e-05/0.3819, allocations: 71.66 kB / 1.369 GB, free: 8.199 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.564e-05/0.382, allocations: 0 / 1.369 GB, free: 8.199 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.382, allocations: 7.438 kB / 1.369 GB, free: 8.191 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.382, allocations: 0 / 1.369 GB, free: 8.191 MB / 1.061 GB Notification: Performance of Templates: time 0.003633/0.3856, allocations: 0.7644 MB / 1.37 GB, free: 7.438 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.917246792465448]