Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.001071/0.001071, allocations: 84.39 kB / 21.47 MB, free: 3.027 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.001034/0.001034, allocations: 172.8 kB / 24.87 MB, free: 8.746 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.9729/0.9729, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.896/1.896, allocations: 377.9 MB / 0.6247 GB, free: 8.414 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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 0.8128 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.665e-05/1.83e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.387 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001355/0.001374, allocations: 0.6048 MB / 0.8134 GB, free: 0.7969 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001048/0.002422, allocations: 1.163 MB / 0.8146 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.846e-05/0.00245, allocations: 0 / 0.8146 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 1.311e-05/0.002463, allocations: 0.75 kB / 0.8146 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.002645, allocations: 20.73 kB / 0.8146 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 2.615e-06/0.002647, allocations: 0 / 0.8146 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 3.404e-05/0.002681, allocations: 7.922 kB / 0.8146 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.883e-05/0.00272, allocations: 8.875 kB / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 1.999e-05/0.00274, allocations: 4 kB / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 2.245e-05/0.002763, allocations: 1.375 kB / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 7.414e-06/0.00277, allocations: 0 / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 8.898e-05/0.002859, allocations: 19.91 kB / 0.8146 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.708e-06/0.002869, allocations: 4 kB / 0.8146 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.165e-06/0.002877, allocations: 1.156 kB / 0.8146 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 6.183e-05/0.002939, allocations: 11.98 kB / 0.8146 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.002941, allocations: 0 / 0.8146 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of FrontEnd: time 3.31e-07/0.002941, allocations: 1.188 kB / 0.8146 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.176e-06/0.002944, allocations: 0 / 0.8146 GB, free: 15.54 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.0001978/0.003142, allocations: 344.3 kB / 0.815 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.003172, allocations: 9.156 kB / 0.815 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.356e-05/0.003195, allocations: 8.922 kB / 0.815 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.554e-05/0.003251, allocations: 108.6 kB / 0.8151 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.968e-06/0.003261, allocations: 5.188 kB / 0.8151 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.003276, allocations: 4.375 kB / 0.8151 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.793e-05/0.003334, allocations: 31.59 kB / 0.8151 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.003344, allocations: 4.188 kB / 0.8151 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.172e-06/0.00335, allocations: 4.359 kB / 0.8151 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.003355, allocations: 3.938 kB / 0.8151 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.92e-05/0.003374, allocations: 8.469 kB / 0.8151 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.393e-05/0.003458, allocations: 95.2 kB / 0.8152 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.003576, allocations: 43.03 kB / 0.8153 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.25e-05/0.003589, allocations: 11.69 kB / 0.8153 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 7.079e-05/0.00366, allocations: 8.078 kB / 0.8153 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.003678, allocations: 33.39 kB / 0.8153 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.003679, allocations: 1.719 kB / 0.8153 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5): time 0.000973/0.004652, allocations: 268.5 kB / 0.8156 GB, free: 14.47 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.004683, allocations: 59.34 kB / 0.8156 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.684e-05/0.00472, allocations: 142.2 kB / 0.8158 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.004737, allocations: 26.58 kB / 0.8158 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.004763, allocations: 126.9 kB / 0.8159 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.004798, allocations: 21.22 kB / 0.8159 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.004834, allocations: 23.38 kB / 0.816 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 9.984e-05/0.004934, allocations: 496.1 kB / 0.8164 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.372e-05/0.004968, allocations: 9.547 kB / 0.8164 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.021e-05/0.005008, allocations: 30.62 kB / 0.8165 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.326e-05/0.005081, allocations: 45.67 kB / 0.8165 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.005082, allocations: 0.9375 kB / 0.8165 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001121/0.005194, allocations: 68.83 kB / 0.8166 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.005204, allocations: 5.625 kB / 0.8166 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.005207, allocations: 0 / 0.8166 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.817e-06/0.005216, allocations: 4 kB / 0.8166 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.005336, allocations: 30.61 kB / 0.8166 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.135e-06/0.005339, allocations: 3.938 kB / 0.8166 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.896e-05/0.005428, allocations: 22.52 kB / 0.8167 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.005435, allocations: 0 / 0.8167 GB, free: 13.31 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.239e-05/0.005498, allocations: 160.6 kB / 0.8168 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.005514, allocations: 11.95 kB / 0.8168 GB, free: 13.13 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.005663, allocations: 85.81 kB / 0.8169 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.005665, allocations: 0 / 0.8169 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.005669, allocations: 0 / 0.8169 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.005673, allocations: 11.94 kB / 0.8169 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/0.005902, allocations: 274.1 kB / 0.8172 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.005902, allocations: 0 / 0.8172 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.006012, allocations: 39.92 kB / 0.8172 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.006014, allocations: 3.938 kB / 0.8172 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.006021, allocations: 0 / 0.8172 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.006024, allocations: 3.938 kB / 0.8172 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.006025, allocations: 0 / 0.8172 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000133/0.006158, allocations: 204.3 kB / 0.8174 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-06/0.006161, allocations: 0 / 0.8174 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.006173, allocations: 0 / 0.8174 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.006274, allocations: 31.92 kB / 0.8174 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.085e-05/0.006285, allocations: 7.984 kB / 0.8174 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.006291, allocations: 0 / 0.8174 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 2.5e-05/0.006316, allocations: 119.2 kB / 0.8176 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of sort global known variables: time 4.1e-08/0.006316, allocations: 0 / 0.8176 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001593/0.006476, allocations: 11.94 kB / 0.8176 GB, free: 12.3 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 (5): * Single equations (assignments): 5 * 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 9.165e-05/0.006567, allocations: 111.2 kB / 0.8177 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001058/0.006673, allocations: 27.67 kB / 0.8177 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.006677, allocations: 4.188 kB / 0.8177 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.652e-05/0.006713, allocations: 23.81 kB / 0.8177 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.006849, allocations: 7.984 kB / 0.8177 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002483/0.007097, allocations: 137.3 kB / 0.8179 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.757e-05/0.007125, allocations: 59.34 kB / 0.8179 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.945e-05/0.007224, allocations: 31.98 kB / 0.818 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.151e-05/0.007296, allocations: 74.2 kB / 0.818 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of SimCode: time 3.51e-07/0.007296, allocations: 0 / 0.818 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of Templates: time 0.002026/0.009322, allocations: 0.9127 MB / 0.8189 GB, free: 10.86 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.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.037980676162988]