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.001045/0.001045, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.00107/0.00107, allocations: 177.4 kB / 23.36 MB, free: 1.125 MB / 18.57 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 0.9184/0.9184, allocations: 177.2 MB / 203.8 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] 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.295/2.295, allocations: 438.8 MB / 0.6826 GB, free: 13.62 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 0.8386 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.177e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002479/0.002501, allocations: 1.509 MB / 0.84 GB, free: 12.72 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0006855/0.003186, allocations: 366.5 kB / 0.8404 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.016e-05/0.003217, allocations: 0 / 0.8404 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.003244, allocations: 7.922 kB / 0.8404 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 4.752e-05/0.003292, allocations: 7.938 kB / 0.8404 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.003708, allocations: 107.6 kB / 0.8405 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 7.179e-05/0.00378, allocations: 31.91 kB / 0.8405 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.163e-05/0.003852, allocations: 7.938 kB / 0.8405 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 6.454e-05/0.003916, allocations: 19.92 kB / 0.8406 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 3.5e-05/0.003951, allocations: 7.984 kB / 0.8406 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.003966, allocations: 0 / 0.8406 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003591/0.004325, allocations: 255.7 kB / 0.8408 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.004343, allocations: 11.97 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.703e-05/0.00436, allocations: 4 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.004573, allocations: 135.6 kB / 0.841 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.004576, allocations: 0 / 0.841 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.31e-07/0.004577, allocations: 0 / 0.841 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.004581, allocations: 0 / 0.841 GB, free: 11.78 MB / 0.8073 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.000335/0.004916, allocations: 264.6 kB / 0.8412 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.004948, allocations: 8.625 kB / 0.8412 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.005013, allocations: 4.938 kB / 0.8412 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.984e-05/0.005093, allocations: 109.8 kB / 0.8413 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.005102, allocations: 384 / 0.8413 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.005112, allocations: 384 / 0.8413 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.005227, allocations: 62.88 kB / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.005234, allocations: 192 / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-06/0.00524, allocations: 384 / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.005245, allocations: 384 / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.256e-05/0.005268, allocations: 7.938 kB / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002023/0.00547, allocations: 148.3 kB / 0.8415 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.595e-05/0.005516, allocations: 22.52 kB / 0.8416 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.005533, allocations: 8.922 kB / 0.8416 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003485/0.005881, allocations: 79.92 kB / 0.8417 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.005905, allocations: 34.56 kB / 0.8417 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.005906, allocations: 0 / 0.8417 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001445/0.00605, allocations: 37.69 kB / 0.8417 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.006083, allocations: 55.34 kB / 0.8418 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.248e-05/0.006145, allocations: 114.8 kB / 0.8419 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.948e-06/0.006155, allocations: 29.64 kB / 0.8419 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.325e-05/0.006188, allocations: 88.09 kB / 0.842 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.589e-05/0.006204, allocations: 7.891 kB / 0.842 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.006234, allocations: 17.72 kB / 0.842 GB, free: 10.55 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.006322, allocations: 318.8 kB / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.006332, allocations: 0 / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.848e-06/0.006342, allocations: 4 kB / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.507e-05/0.006367, allocations: 8.859 kB / 0.8423 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.006369, allocations: 0 / 0.8423 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.675e-05/0.006446, allocations: 41.75 kB / 0.8424 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.006457, allocations: 4 kB / 0.8424 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.006461, allocations: 0 / 0.8424 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.006473, allocations: 4 kB / 0.8424 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.098e-05/0.006534, allocations: 11.88 kB / 0.8424 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.006537, allocations: 3.984 kB / 0.8424 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.015e-05/0.006558, allocations: 0 / 0.8424 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-06/0.006562, allocations: 4 kB / 0.8424 GB, free: 10.14 MB / 0.8073 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 5.482e-05/0.006616, allocations: 105.8 kB / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.006653, allocations: 8.031 kB / 0.8425 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.881e-05/0.006731, allocations: 45.3 kB / 0.8426 GB, free: 9.977 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.006733, allocations: 0 / 0.8426 GB, free: 9.977 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.006736, allocations: 3.938 kB / 0.8426 GB, free: 9.973 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.006739, allocations: 4 kB / 0.8426 GB, free: 9.969 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.006855, allocations: 69.88 kB / 0.8426 GB, free: 9.883 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.006858, allocations: 3.984 kB / 0.8426 GB, free: 9.879 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-05/0.006891, allocations: 4 kB / 0.8426 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.006893, allocations: 0 / 0.8426 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.006899, allocations: 0 / 0.8426 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.006901, allocations: 11.86 kB / 0.8426 GB, free: 9.863 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.006902, allocations: 8.031 kB / 0.8427 GB, free: 9.855 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.007003, allocations: 135.5 kB / 0.8428 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.186e-06/0.007012, allocations: 3.984 kB / 0.8428 GB, free: 9.703 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.879e-06/0.007021, allocations: 4.25 kB / 0.8428 GB, free: 9.699 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.318e-05/0.007075, allocations: 0 / 0.8428 GB, free: 9.699 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.114e-05/0.007106, allocations: 8 kB / 0.8428 GB, free: 9.691 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.007109, allocations: 0 / 0.8428 GB, free: 9.691 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.806e-05/0.007127, allocations: 16.78 kB / 0.8428 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.2e-07/0.007127, allocations: 0 / 0.8428 GB, free: 9.672 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002228/0.00735, allocations: 12 kB / 0.8428 GB, free: 9.66 MB / 0.8073 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.0001441/0.007494, allocations: 100.4 kB / 0.8429 GB, free: 9.555 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.107e-05/0.007565, allocations: 16.78 kB / 0.8429 GB, free: 9.535 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/0.007575, allocations: 4 kB / 0.8429 GB, free: 9.531 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.849e-05/0.007594, allocations: 4.859 kB / 0.8429 GB, free: 9.523 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.007767, allocations: 4 kB / 0.843 GB, free: 9.52 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002395/0.008006, allocations: 104.8 kB / 0.8431 GB, free: 9.391 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.757e-05/0.008044, allocations: 63.47 kB / 0.8431 GB, free: 9.309 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.767e-05/0.008062, allocations: 0 / 0.8431 GB, free: 9.309 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.285e-05/0.008104, allocations: 51.38 kB / 0.8432 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of SimCode: time 5.31e-07/0.008105, allocations: 0 / 0.8432 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of Templates: time 0.002535/0.01064, allocations: 0.7894 MB / 0.8439 GB, free: 8.477 MB / 0.8073 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.123081540688872]