Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.0008433/0.0008433, allocations: 93.06 kB / 19.65 MB, free: 272 kB / 13.93 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.0009665/0.0009665, allocations: 169 kB / 23.02 MB, free: 1.539 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.9295/0.9295, allocations: 177.1 MB / 203.4 MB, free: 5.625 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.079/2.079, allocations: 429.5 MB / 0.6732 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.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.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 0.8782 GB, free: 6.238 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.01e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.234 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001348/0.001368, allocations: 0.6097 MB / 0.8788 GB, free: 5.645 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.003562/0.00493, allocations: 306.2 kB / 0.8791 GB, free: 5.352 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.65e-05/0.004946, allocations: 0 / 0.8791 GB, free: 5.352 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.996e-05/0.004966, allocations: 1.031 kB / 0.8791 GB, free: 5.352 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.765e-06/0.004974, allocations: 0 / 0.8791 GB, free: 5.352 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004341/0.005408, allocations: 108.7 kB / 0.8792 GB, free: 5.246 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 4.594e-05/0.005454, allocations: 4 kB / 0.8792 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.256e-05/0.005487, allocations: 1.25 kB / 0.8792 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 2.433e-05/0.005511, allocations: 0 / 0.8792 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 2.095e-05/0.005532, allocations: 3.984 kB / 0.8792 GB, free: 5.238 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.005544, allocations: 1.594 kB / 0.8792 GB, free: 5.238 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003439/0.005888, allocations: 255.7 kB / 0.8795 GB, free: 4.988 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.132e-05/0.0059, allocations: 0 / 0.8795 GB, free: 4.988 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.358e-05/0.005913, allocations: 0 / 0.8795 GB, free: 4.988 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001779/0.006091, allocations: 122.6 kB / 0.8796 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.006093, allocations: 0 / 0.8796 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.31e-07/0.006094, allocations: 0 / 0.8796 GB, free: 4.871 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.596e-06/0.006098, allocations: 0 / 0.8796 GB, free: 4.871 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002686/0.006366, allocations: 364.2 kB / 0.8799 GB, free: 4.477 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.006405, allocations: 12.02 kB / 0.8799 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.34e-05/0.006478, allocations: 0.9375 kB / 0.8799 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.181e-05/0.00654, allocations: 112.6 kB / 0.8801 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.00655, allocations: 1.094 kB / 0.8801 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.255e-06/0.006558, allocations: 4.375 kB / 0.8801 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.207e-05/0.006631, allocations: 31.92 kB / 0.8801 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.006637, allocations: 192 / 0.8801 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.006645, allocations: 384 / 0.8801 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-06/0.006652, allocations: 384 / 0.8801 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.434e-05/0.006666, allocations: 8.375 kB / 0.8801 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.861e-05/0.006765, allocations: 112.6 kB / 0.8802 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.28e-05/0.006807, allocations: 28.39 kB / 0.8802 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.563e-05/0.006823, allocations: 11.69 kB / 0.8802 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002675/0.00709, allocations: 45.66 kB / 0.8803 GB, free: 4.039 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.007114, allocations: 45.39 kB / 0.8803 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.007115, allocations: 0 / 0.8803 GB, free: 3.984 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001285/0.007244, allocations: 33.98 kB / 0.8804 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.007269, allocations: 55.39 kB / 0.8804 GB, free: 3.879 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.207e-05/0.007311, allocations: 142.2 kB / 0.8806 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.00732, allocations: 25.7 kB / 0.8806 GB, free: 3.695 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.276e-05/0.007353, allocations: 130.9 kB / 0.8807 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.007378, allocations: 3.953 kB / 0.8807 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.007403, allocations: 15.38 kB / 0.8807 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.007521, allocations: 0.4922 MB / 0.8812 GB, free: 3.031 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.105e-06/0.007529, allocations: 4.125 kB / 0.8812 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.17e-06/0.007534, allocations: 0 / 0.8812 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.745e-05/0.007562, allocations: 11.69 kB / 0.8812 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.007564, allocations: 0 / 0.8812 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.966e-05/0.007624, allocations: 37.62 kB / 0.8813 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.007636, allocations: 8 kB / 0.8813 GB, free: 2.961 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.00764, allocations: 0 / 0.8813 GB, free: 2.961 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.00765, allocations: 0 / 0.8813 GB, free: 2.961 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.946e-05/0.00769, allocations: 4 kB / 0.8813 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.007694, allocations: 96 / 0.8813 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.091e-05/0.007705, allocations: 11.94 kB / 0.8813 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.007709, allocations: 0 / 0.8813 GB, free: 2.945 MB / 0.8386 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 (1): * Single equations (assignments): 1 * 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 0.003077/0.01079, allocations: 156.6 kB / 0.8814 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.0108, allocations: 0 / 0.8814 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.02e-05/0.01087, allocations: 44.62 kB / 0.8815 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.01087, allocations: 0 / 0.8815 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.01088, allocations: 0 / 0.8815 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01088, allocations: 3.984 kB / 0.8815 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.164e-05/0.01094, allocations: 108.6 kB / 0.8816 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.01095, allocations: 8.031 kB / 0.8816 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.165e-06/0.01095, allocations: 3.938 kB / 0.8816 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01096, allocations: 0 / 0.8816 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.01096, allocations: 3.984 kB / 0.8816 GB, free: 2.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.01096, allocations: 0 / 0.8816 GB, free: 2.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01096, allocations: 0 / 0.8816 GB, free: 2.57 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.532e-05/0.01103, allocations: 72.39 kB / 0.8817 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-06/0.01103, allocations: 4 kB / 0.8817 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.346e-06/0.01104, allocations: 0 / 0.8817 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.21e-06/0.01105, allocations: 0 / 0.8817 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.401e-05/0.01106, allocations: 8.016 kB / 0.8817 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-06/0.01106, allocations: 3.938 kB / 0.8817 GB, free: 2.461 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.963e-05/0.01109, allocations: 119.2 kB / 0.8818 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.01109, allocations: 4 kB / 0.8818 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001875/0.01128, allocations: 11.94 kB / 0.8818 GB, free: 2.328 MB / 0.8386 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 (1): * Single equations (assignments): 1 * 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.000131/0.01141, allocations: 107.2 kB / 0.8819 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.138e-05/0.01148, allocations: 19.67 kB / 0.8819 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01148, allocations: 0 / 0.8819 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.237e-06/0.01149, allocations: 15.75 kB / 0.8819 GB, free: 2.172 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.01161, allocations: 0 / 0.8819 GB, free: 2.172 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000167/0.01178, allocations: 79.95 kB / 0.882 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.847e-05/0.01181, allocations: 55.36 kB / 0.8821 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.48e-05/0.01182, allocations: 0 / 0.8821 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.262e-05/0.01183, allocations: 8.5 kB / 0.8821 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/0.01183, allocations: 3.938 kB / 0.8821 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of Templates: time 0.005218/0.01705, allocations: 0.536 MB / 0.8826 GB, free: 1.441 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_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.235860543325543]