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.001938/0.001938, allocations: 77.86 kB / 19.76 MB, free: 2.031 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.002452/0.002452, allocations: 162.4 kB / 23.01 MB, free: 4.945 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.427/1.427, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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 2.878/2.878, allocations: 394.2 MB / 0.6386 GB, free: 11.92 MB / 0.6075 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.002057/0.002057, allocations: 74.08 kB / 1.009 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8716/0.8737, allocations: 181.8 MB / 1.187 GB, free: 16.19 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003291/0.877, allocations: 1.469 MB / 1.188 GB, free: 15.18 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0008685/0.8778, allocations: 360.5 kB / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.642e-05/0.8779, allocations: 0 / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.8779, allocations: 4.547 kB / 1.188 GB, free: 14.95 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 4.918e-05/0.878, allocations: 1.5 kB / 1.188 GB, free: 14.95 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006016/0.8786, allocations: 119.7 kB / 1.188 GB, free: 14.91 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 7.902e-05/0.8786, allocations: 29.11 kB / 1.189 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.8787, allocations: 7.203 kB / 1.189 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.413e-05/0.8788, allocations: 18.66 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 4.044e-05/0.8788, allocations: 5.406 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.8788, allocations: 2.562 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005778/0.8794, allocations: 257.5 kB / 1.189 GB, free: 14.83 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.913e-05/0.8794, allocations: 9.812 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.477e-05/0.8795, allocations: 8.031 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.8797, allocations: 114.8 kB / 1.189 GB, free: 14.78 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.8797, allocations: 3.938 kB / 1.189 GB, free: 14.77 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.242e-06/0.8797, allocations: 1.188 kB / 1.189 GB, free: 14.77 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.8798, allocations: 0 / 1.189 GB, free: 14.77 MB / 1.076 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.0004513/0.8802, allocations: 293.3 kB / 1.189 GB, free: 14.48 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.8802, allocations: 9.125 kB / 1.189 GB, free: 14.48 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.397e-05/0.8803, allocations: 3.094 kB / 1.189 GB, free: 14.48 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.542e-05/0.8804, allocations: 110.1 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.8804, allocations: 1.953 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.8804, allocations: 1.531 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.8806, allocations: 49.69 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.8806, allocations: 4.125 kB / 1.189 GB, free: 14.32 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.8806, allocations: 5.875 kB / 1.189 GB, free: 14.31 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.8806, allocations: 0 / 1.189 GB, free: 14.31 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.8809, allocations: 37.25 kB / 1.189 GB, free: 14.3 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002693/0.8811, allocations: 201.2 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.8813, allocations: 36.73 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.8814, allocations: 23.17 kB / 1.19 GB, free: 14.05 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006849/0.8821, allocations: 84.55 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.8821, allocations: 36.23 kB / 1.19 GB, free: 14 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 1.313e-06/0.8821, allocations: 0 / 1.19 GB, free: 14 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0004756/0.8826, allocations: 85.64 kB / 1.19 GB, free: 13.96 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.765e-05/0.8826, allocations: 52.44 kB / 1.19 GB, free: 13.89 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.542e-05/0.8827, allocations: 104.8 kB / 1.19 GB, free: 13.79 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.8827, allocations: 25.7 kB / 1.19 GB, free: 13.76 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.866e-05/0.8827, allocations: 87.48 kB / 1.19 GB, free: 13.68 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.8827, allocations: 5.734 kB / 1.19 GB, free: 13.67 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.8827, allocations: 12.5 kB / 1.19 GB, free: 13.66 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.928e-05/0.8828, allocations: 317.3 kB / 1.19 GB, free: 13.34 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.8829, allocations: 15.09 kB / 1.19 GB, free: 13.34 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.992e-05/0.883, allocations: 26.23 kB / 1.19 GB, free: 13.33 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002014/0.8832, allocations: 38.55 kB / 1.191 GB, free: 13.32 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.8832, allocations: 3.938 kB / 1.191 GB, free: 13.31 MB / 1.076 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002764/0.8835, allocations: 72.66 kB / 1.191 GB, free: 13.27 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.8835, allocations: 9.062 kB / 1.191 GB, free: 13.27 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.8835, allocations: 96 / 1.191 GB, free: 13.27 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.8835, allocations: 5.5 kB / 1.191 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.861e-05/0.8836, allocations: 8.094 kB / 1.191 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.8836, allocations: 1.25 kB / 1.191 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.297e-05/0.8837, allocations: 6.125 kB / 1.191 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.8837, allocations: 5.25 kB / 1.191 GB, free: 13.26 MB / 1.076 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 4.686e-05/0.8837, allocations: 111.6 kB / 1.191 GB, free: 13.14 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.8838, allocations: 6.812 kB / 1.191 GB, free: 13.14 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002796/0.8841, allocations: 77.47 kB / 1.191 GB, free: 13.09 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.8841, allocations: 1.188 kB / 1.191 GB, free: 13.09 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.8841, allocations: 256 / 1.191 GB, free: 13.09 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.8841, allocations: 2.234 kB / 1.191 GB, free: 13.09 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.8842, allocations: 108.7 kB / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.8842, allocations: 0 / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.446e-05/0.8843, allocations: 9.422 kB / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.8843, allocations: 3.938 kB / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.8843, allocations: 1.5 kB / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.8843, allocations: 0.7031 kB / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.8843, allocations: 4.031 kB / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.8846, allocations: 169.2 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.004e-05/0.8846, allocations: 6.188 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.8846, allocations: 1.344 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.8847, allocations: 5.75 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.243e-05/0.8848, allocations: 3.094 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.8848, allocations: 0.9062 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.199e-05/0.8848, allocations: 85.7 kB / 1.191 GB, free: 12.72 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.8848, allocations: 5.188 kB / 1.191 GB, free: 12.72 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003919/0.8852, allocations: 17.11 kB / 1.191 GB, free: 12.71 MB / 1.076 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.0001544/0.8854, allocations: 106 kB / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000267/0.8856, allocations: 36.89 kB / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8856, allocations: 3.938 kB / 1.191 GB, free: 12.62 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.8857, allocations: 20.73 kB / 1.191 GB, free: 12.61 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/0.8861, allocations: 12.56 kB / 1.191 GB, free: 12.61 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002899/0.8864, allocations: 115.2 kB / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.55e-05/0.8865, allocations: 61.23 kB / 1.192 GB, free: 12.42 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.695e-05/0.8865, allocations: 1.969 kB / 1.192 GB, free: 12.42 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.8865, allocations: 9.75 kB / 1.192 GB, free: 12.41 MB / 1.076 GB Notification: Performance of SimCode: time 3.81e-07/0.8865, allocations: 1.375 kB / 1.192 GB, free: 12.41 MB / 1.076 GB Notification: Performance of Templates: time 0.004178/0.8907, allocations: 0.7445 MB / 1.192 GB, free: 12.32 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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/jenkins1/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.615584013983607]