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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002313/0.002313, allocations: 191.4 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.124/3.124, allocations: 495.7 MB / 0.7831 GB, free: 33.68 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=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: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 66.2 kB / 1.137 GB, free: 33.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3493, allocations: 173.6 MB / 1.307 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002806/0.3521, allocations: 1.469 MB / 1.308 GB, free: 408 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000748/0.3528, allocations: 390.7 kB / 1.309 GB, free: 16 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.204e-05/0.3528, allocations: 4 kB / 1.309 GB, free: 12 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.783e-05/0.3529, allocations: 3.938 kB / 1.309 GB, free: 8 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.769e-05/0.3529, allocations: 7.875 kB / 1.309 GB, free: 0 / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004789/0.3534, allocations: 111.7 kB / 1.309 GB, free: 15.89 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.388e-05/0.3535, allocations: 23.92 kB / 1.309 GB, free: 15.87 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.382e-05/0.3535, allocations: 15.92 kB / 1.309 GB, free: 15.85 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.027e-05/0.3536, allocations: 11.94 kB / 1.309 GB, free: 15.84 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.543e-05/0.3536, allocations: 7.984 kB / 1.309 GB, free: 15.83 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.3536, allocations: 4 kB / 1.309 GB, free: 15.83 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000425/0.354, allocations: 275.7 kB / 1.309 GB, free: 15.56 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.484e-05/0.3541, allocations: 7.922 kB / 1.309 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.192e-05/0.3541, allocations: 15.92 kB / 1.309 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.3543, allocations: 99.72 kB / 1.309 GB, free: 15.44 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3543, allocations: 4 kB / 1.309 GB, free: 15.43 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3543, allocations: 0 / 1.309 GB, free: 15.43 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.3543, allocations: 0 / 1.309 GB, free: 15.43 MB / 1.014 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.0004678/0.3548, allocations: 294 kB / 1.31 GB, free: 15.11 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.3548, allocations: 8.031 kB / 1.31 GB, free: 15.11 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.407e-05/0.3549, allocations: 4.938 kB / 1.31 GB, free: 15.1 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.355, allocations: 110.4 kB / 1.31 GB, free: 14.97 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.355, allocations: 4.375 kB / 1.31 GB, free: 14.96 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.355, allocations: 4.375 kB / 1.31 GB, free: 14.96 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.3552, allocations: 50.23 kB / 1.31 GB, free: 14.91 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3552, allocations: 192 / 1.31 GB, free: 14.91 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.3552, allocations: 3.938 kB / 1.31 GB, free: 14.9 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.3552, allocations: 0 / 1.31 GB, free: 14.9 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.3554, allocations: 35.95 kB / 1.31 GB, free: 14.87 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003314/0.3557, allocations: 228 kB / 1.31 GB, free: 14.6 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.3559, allocations: 46.48 kB / 1.31 GB, free: 14.55 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.802e-05/0.356, allocations: 16.91 kB / 1.31 GB, free: 14.53 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005222/0.3565, allocations: 75.92 kB / 1.31 GB, free: 14.45 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.3565, allocations: 34.56 kB / 1.31 GB, free: 14.41 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.3565, allocations: 0 / 1.31 GB, free: 14.41 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0004053/0.3569, allocations: 89.67 kB / 1.31 GB, free: 14.32 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.357, allocations: 51.41 kB / 1.31 GB, free: 14.25 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.32e-05/0.357, allocations: 109.8 kB / 1.31 GB, free: 14.14 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.3571, allocations: 25.7 kB / 1.31 GB, free: 14.11 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.201e-05/0.3571, allocations: 84.14 kB / 1.311 GB, free: 14.02 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.3571, allocations: 15.88 kB / 1.311 GB, free: 14 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/0.3572, allocations: 9.719 kB / 1.311 GB, free: 13.99 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3573, allocations: 314.8 kB / 1.311 GB, free: 13.67 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.594e-05/0.3574, allocations: 20.02 kB / 1.311 GB, free: 13.65 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.691e-05/0.3575, allocations: 19.97 kB / 1.311 GB, free: 13.63 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.3576, allocations: 36.83 kB / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3576, allocations: 3.938 kB / 1.311 GB, free: 13.59 MB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002284/0.3579, allocations: 81.55 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.3579, allocations: 4 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3579, allocations: 4 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.3579, allocations: 0 / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.702e-05/0.358, allocations: 4.25 kB / 1.311 GB, free: 13.49 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.358, allocations: 3.984 kB / 1.311 GB, free: 13.49 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.112e-05/0.358, allocations: 12 kB / 1.311 GB, free: 13.48 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.358, allocations: 0 / 1.311 GB, free: 13.48 MB / 1.014 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.687e-05/0.3581, allocations: 125.8 kB / 1.311 GB, free: 13.35 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.3582, allocations: 0 / 1.311 GB, free: 13.35 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002447/0.3584, allocations: 77.27 kB / 1.311 GB, free: 13.26 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3584, allocations: 7.922 kB / 1.311 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3584, allocations: 0 / 1.311 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.3584, allocations: 4 kB / 1.311 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/0.3586, allocations: 128.7 kB / 1.311 GB, free: 13.08 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3586, allocations: 0 / 1.311 GB, free: 13.08 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.058e-05/0.3586, allocations: 16.02 kB / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3587, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.3587, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3587, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3587, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002808/0.3589, allocations: 167.4 kB / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 9.778e-06/0.359, allocations: 8.031 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.359, allocations: 3.984 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.534e-05/0.359, allocations: 4 kB / 1.312 GB, free: 12.87 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.136e-05/0.3591, allocations: 7.984 kB / 1.312 GB, free: 12.86 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.3591, allocations: 3.938 kB / 1.312 GB, free: 12.86 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.573e-05/0.3591, allocations: 83.28 kB / 1.312 GB, free: 12.78 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3591, allocations: 3.938 kB / 1.312 GB, free: 12.77 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002286/0.3593, allocations: 12 kB / 1.312 GB, free: 12.76 MB / 1.014 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.000172/0.3595, allocations: 115.2 kB / 1.312 GB, free: 12.64 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002189/0.3597, allocations: 35.97 kB / 1.312 GB, free: 12.61 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3597, allocations: 0 / 1.312 GB, free: 12.61 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 8.947e-05/0.3598, allocations: 19.97 kB / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.3601, allocations: 7.938 kB / 1.312 GB, free: 12.58 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002778/0.3604, allocations: 113.7 kB / 1.312 GB, free: 12.44 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.3607, allocations: 0.6806 MB / 1.313 GB, free: 11.73 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.153e-05/0.3607, allocations: 0 / 1.313 GB, free: 11.73 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.218e-05/0.3607, allocations: 11.44 kB / 1.313 GB, free: 11.72 MB / 1.014 GB Notification: Performance of SimCode: time 3.11e-07/0.3607, allocations: 3.938 kB / 1.313 GB, free: 11.72 MB / 1.014 GB Notification: Performance of Templates: time 0.003198/0.3639, allocations: 0.729 MB / 1.313 GB, free: 10.99 MB / 1.014 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.662503744475543]