Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.0009652/0.0009652, allocations: 92.2 kB / 20.19 MB, free: 4.367 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.0009735/0.0009735, allocations: 173 kB / 23.5 MB, free: 1.059 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.9278/0.9278, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.14/2.14, allocations: 429.5 MB / 0.6736 GB, free: 4.074 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.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 0.8782 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.871e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.668 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001722/0.001741, allocations: 1.505 MB / 0.8797 GB, free: 5.172 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.000608/0.002349, allocations: 496.4 kB / 0.8801 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.363e-05/0.002382, allocations: 0.5938 kB / 0.8801 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.334e-05/0.002405, allocations: 3.938 kB / 0.8801 GB, free: 4.684 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.719e-05/0.002463, allocations: 1.344 kB / 0.8801 GB, free: 4.684 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.002649, allocations: 23.91 kB / 0.8802 GB, free: 4.66 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.181e-05/0.00271, allocations: 29.2 kB / 0.8802 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 7.746e-05/0.002788, allocations: 7.984 kB / 0.8802 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.228e-05/0.00286, allocations: 12 kB / 0.8802 GB, free: 4.613 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.295e-05/0.002893, allocations: 7.984 kB / 0.8802 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.338e-05/0.002906, allocations: 5.594 kB / 0.8802 GB, free: 4.602 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.613e-05/0.002963, allocations: 23.91 kB / 0.8802 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.22e-05/0.002975, allocations: 3.938 kB / 0.8802 GB, free: 4.574 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.797e-05/0.002993, allocations: 8 kB / 0.8802 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.003098, allocations: 33.55 kB / 0.8803 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.0031, allocations: 0 / 0.8803 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.31e-07/0.003101, allocations: 0 / 0.8803 GB, free: 4.535 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.003105, allocations: 0 / 0.8803 GB, free: 4.535 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003616/0.003467, allocations: 371.4 kB / 0.8806 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.003508, allocations: 12.03 kB / 0.8806 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.003703, allocations: 16.88 kB / 0.8807 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.365e-05/0.003797, allocations: 108.6 kB / 0.8808 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.00381, allocations: 384 / 0.8808 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.003819, allocations: 384 / 0.8808 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.003939, allocations: 58.94 kB / 0.8808 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.003947, allocations: 192 / 0.8808 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.003956, allocations: 4.375 kB / 0.8808 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.003964, allocations: 7.938 kB / 0.8808 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.09e-05/0.004005, allocations: 11.92 kB / 0.8808 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002886/0.004294, allocations: 255.8 kB / 0.8811 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.183e-05/0.004346, allocations: 31.06 kB / 0.8811 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.223e-05/0.004368, allocations: 11.75 kB / 0.8811 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.004387, allocations: 4 kB / 0.8811 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.004426, allocations: 41.27 kB / 0.8812 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.004427, allocations: 0 / 0.8812 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.000156/0.004583, allocations: 49.64 kB / 0.8812 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.004615, allocations: 55.41 kB / 0.8813 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.043e-05/0.004685, allocations: 165.9 kB / 0.8814 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.004694, allocations: 25.7 kB / 0.8815 GB, free: 3.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.975e-05/0.004734, allocations: 130.9 kB / 0.8816 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.635e-05/0.00478, allocations: 7.953 kB / 0.8816 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.004806, allocations: 15.38 kB / 0.8816 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.004906, allocations: 0.4923 MB / 0.8821 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.457e-05/0.00492, allocations: 0 / 0.8821 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.249e-05/0.004933, allocations: 4 kB / 0.8821 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.498e-05/0.004968, allocations: 23.81 kB / 0.8821 GB, free: 2.461 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.00497, allocations: 0 / 0.8821 GB, free: 2.461 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.692e-05/0.005027, allocations: 41.69 kB / 0.8822 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.00504, allocations: 11.94 kB / 0.8822 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.005044, allocations: 0 / 0.8822 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.005055, allocations: 0 / 0.8822 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.767e-05/0.005123, allocations: 4 kB / 0.8822 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.005127, allocations: 0 / 0.8822 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.54e-05/0.005153, allocations: 11.92 kB / 0.8822 GB, free: 2.387 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-06/0.005157, allocations: 0 / 0.8822 GB, free: 2.387 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 (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.253e-05/0.005209, allocations: 164.6 kB / 0.8823 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.005226, allocations: 7.875 kB / 0.8823 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.803e-05/0.005254, allocations: 3.312 kB / 0.8823 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.005257, allocations: 4 kB / 0.8823 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.00526, allocations: 0 / 0.8823 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.005262, allocations: 0 / 0.8823 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.005407, allocations: 116.6 kB / 0.8825 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.005408, allocations: 0 / 0.8825 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.781e-05/0.005435, allocations: 7.984 kB / 0.8825 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.31e-07/0.005436, allocations: 8 kB / 0.8825 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.005444, allocations: 3.938 kB / 0.8825 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.52e-07/0.005445, allocations: 0 / 0.8825 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4e-07/0.005445, allocations: 0 / 0.8825 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.665e-05/0.005542, allocations: 191.9 kB / 0.8827 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-06/0.005546, allocations: 0 / 0.8827 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.005559, allocations: 7.938 kB / 0.8827 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.648e-05/0.005595, allocations: 0 / 0.8827 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.358e-05/0.005629, allocations: 7.984 kB / 0.8827 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.005632, allocations: 3.938 kB / 0.8827 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.589e-05/0.005668, allocations: 135.5 kB / 0.8828 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.005668, allocations: 0 / 0.8828 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001394/0.005807, allocations: 4 kB / 0.8828 GB, free: 1.668 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 (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 6.928e-05/0.005877, allocations: 91.25 kB / 0.8829 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.045e-05/0.005957, allocations: 19.67 kB / 0.8829 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.005958, allocations: 0 / 0.8829 GB, free: 1.547 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.083e-05/0.005979, allocations: 15.69 kB / 0.8829 GB, free: 1.527 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001778/0.006157, allocations: 4 kB / 0.8829 GB, free: 1.523 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002231/0.00638, allocations: 126.3 kB / 0.8831 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.176e-05/0.006412, allocations: 55.34 kB / 0.8831 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.542e-05/0.006437, allocations: 4 kB / 0.8831 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.629e-05/0.006463, allocations: 12.5 kB / 0.8831 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of SimCode: time 8.92e-07/0.006464, allocations: 0 / 0.8831 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of Templates: time 0.001932/0.008396, allocations: 0.6164 MB / 0.8837 GB, free: 0.6797 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.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.357015781104565]