Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001344/0.001344, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001501/0.001501, allocations: 169.3 kB / 24.28 MB, free: 280 kB / 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.9521/0.9521, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.87/1.87, allocations: 377.8 MB / 0.6239 GB, free: 8.57 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 0.8115 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.616e-05/2.812e-05, allocations: 3.281 kB / 0.8115 GB, free: 2.074 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002055/0.002083, allocations: 1.504 MB / 0.813 GB, free: 0.5859 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0005808/0.002664, allocations: 366.8 kB / 0.8133 GB, free: 232 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.882e-05/0.002703, allocations: 0 / 0.8133 GB, free: 232 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.585e-05/0.002729, allocations: 4.812 kB / 0.8134 GB, free: 228 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 4.235e-05/0.002771, allocations: 3.938 kB / 0.8134 GB, free: 224 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.003164, allocations: 118 kB / 0.8135 GB, free: 108 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 6.854e-05/0.003233, allocations: 27.92 kB / 0.8135 GB, free: 80 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 8.601e-05/0.003319, allocations: 0 / 0.8135 GB, free: 80 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 5.724e-05/0.003376, allocations: 21.45 kB / 0.8135 GB, free: 60 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 3.176e-05/0.003408, allocations: 7.984 kB / 0.8135 GB, free: 52 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.003422, allocations: 4 kB / 0.8135 GB, free: 48 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002899/0.003712, allocations: 259.6 kB / 0.8138 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.512e-05/0.003727, allocations: 0.6875 kB / 0.8138 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.309e-05/0.003751, allocations: 15.92 kB / 0.8138 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001867/0.003937, allocations: 128.7 kB / 0.8139 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.00394, allocations: 4 kB / 0.8139 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.61e-07/0.003941, allocations: 0 / 0.8139 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.003945, allocations: 1.375 kB / 0.8139 GB, free: 15.65 MB / 0.7761 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.0003536/0.004298, allocations: 380.3 kB / 0.8143 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.004337, allocations: 16.02 kB / 0.8143 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.512e-05/0.004413, allocations: 2.688 kB / 0.8143 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.365e-05/0.004506, allocations: 116.5 kB / 0.8144 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.004519, allocations: 4.359 kB / 0.8144 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.004528, allocations: 4.375 kB / 0.8144 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.004641, allocations: 51.89 kB / 0.8145 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.004647, allocations: 4.188 kB / 0.8145 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.004656, allocations: 384 / 0.8145 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.004664, allocations: 0.9688 kB / 0.8145 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.004e-05/0.004694, allocations: 11.92 kB / 0.8145 GB, free: 15 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002628/0.004957, allocations: 244.4 kB / 0.8147 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 5.012e-05/0.005007, allocations: 39.48 kB / 0.8148 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.294e-05/0.00503, allocations: 16.44 kB / 0.8148 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003068/0.005337, allocations: 71.73 kB / 0.8148 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.005362, allocations: 37.39 kB / 0.8149 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.005363, allocations: 0 / 0.8149 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 0.0001742/0.005537, allocations: 50.06 kB / 0.8149 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002889/0.005826, allocations: 51.41 kB / 0.815 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.251e-05/0.005898, allocations: 166.6 kB / 0.8151 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.005907, allocations: 26.23 kB / 0.8152 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.005952, allocations: 138.9 kB / 0.8153 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.628e-05/0.005969, allocations: 5.578 kB / 0.8153 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.005995, allocations: 19.38 kB / 0.8153 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 9.709e-05/0.006092, allocations: 496.1 kB / 0.8158 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.308e-05/0.006105, allocations: 0 / 0.8158 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.139e-05/0.006116, allocations: 4.594 kB / 0.8158 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.628e-05/0.006143, allocations: 12.38 kB / 0.8158 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.006146, allocations: 4.797 kB / 0.8158 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.809e-05/0.006214, allocations: 41.64 kB / 0.8158 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.006226, allocations: 8.938 kB / 0.8159 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.006233, allocations: 3.938 kB / 0.8159 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.006246, allocations: 1.219 kB / 0.8159 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.443e-05/0.0063, allocations: 4.25 kB / 0.8159 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.006307, allocations: 3.984 kB / 0.8159 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.868e-05/0.006326, allocations: 12.78 kB / 0.8159 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-06/0.00633, allocations: 0 / 0.8159 GB, free: 13.45 MB / 0.7761 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 6.29e-05/0.006393, allocations: 158.8 kB / 0.816 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.006419, allocations: 3.953 kB / 0.816 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.129e-05/0.0065, allocations: 53.23 kB / 0.8161 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.006502, allocations: 0 / 0.8161 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.006506, allocations: 4 kB / 0.8161 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.006509, allocations: 0 / 0.8161 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.188e-05/0.006601, allocations: 123.5 kB / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.006601, allocations: 0 / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.257e-05/0.006624, allocations: 4 kB / 0.8162 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.006626, allocations: 3.938 kB / 0.8162 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.006633, allocations: 3.984 kB / 0.8162 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.006637, allocations: 7.938 kB / 0.8162 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.006638, allocations: 0 / 0.8162 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.224e-05/0.00673, allocations: 181.4 kB / 0.8164 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-06/0.006735, allocations: 4 kB / 0.8164 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.558e-06/0.006744, allocations: 3.984 kB / 0.8164 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.252e-05/0.006777, allocations: 8.562 kB / 0.8164 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/0.006808, allocations: 0 / 0.8164 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.006811, allocations: 0.6562 kB / 0.8164 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.659e-05/0.006848, allocations: 131.2 kB / 0.8165 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.006848, allocations: 1.812 kB / 0.8165 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.00016/0.007008, allocations: 15.95 kB / 0.8166 GB, free: 12.69 MB / 0.7761 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.0001366/0.007144, allocations: 115.1 kB / 0.8167 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.742e-05/0.007222, allocations: 20.86 kB / 0.8167 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.007223, allocations: 0 / 0.8167 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.75e-05/0.00724, allocations: 12.78 kB / 0.8167 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.007419, allocations: 4 kB / 0.8167 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002346/0.007654, allocations: 115 kB / 0.8168 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.295e-05/0.007687, allocations: 63.92 kB / 0.8169 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.642e-05/0.007703, allocations: 11.86 kB / 0.8169 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.903e-05/0.007722, allocations: 8.5 kB / 0.8169 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of SimCode: time 7.22e-07/0.007723, allocations: 0 / 0.8169 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of Templates: time 0.00234/0.01006, allocations: 0.7489 MB / 0.8176 GB, free: 11.55 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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.099240764044225]