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.001841/0.001841, allocations: 81.5 kB / 19.44 MB, free: 340 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.002044/0.002044, allocations: 173.2 kB / 22.76 MB, free: 1.656 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 1.614/1.614, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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 3.449/3.449, allocations: 429.5 MB / 0.6729 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 176] 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.343e-06/1.343e-06, allocations: 0 / 0.8774 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.693e-05/2.827e-05, allocations: 13.06 kB / 0.8774 GB, free: 6.664 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002738/0.002766, allocations: 1.479 MB / 0.8789 GB, free: 5.199 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001076/0.003842, allocations: 489.2 kB / 0.8794 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.217e-05/0.003874, allocations: 0.5312 kB / 0.8794 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.335e-05/0.003897, allocations: 4.875 kB / 0.8794 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.728e-05/0.003964, allocations: 4.484 kB / 0.8794 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.004166, allocations: 20.98 kB / 0.8794 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.894e-05/0.004245, allocations: 23.92 kB / 0.8794 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.794e-05/0.004333, allocations: 8 kB / 0.8794 GB, free: 4.664 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 9.587e-05/0.004429, allocations: 17.14 kB / 0.8794 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.189e-05/0.004471, allocations: 11.97 kB / 0.8794 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.004489, allocations: 4 kB / 0.8794 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.693e-05/0.004556, allocations: 13.09 kB / 0.8795 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.004573, allocations: 3.984 kB / 0.8795 GB, free: 4.617 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.854e-05/0.004602, allocations: 19.88 kB / 0.8795 GB, free: 4.598 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.004721, allocations: 32.55 kB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004723, allocations: 2.156 kB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.42e-07/0.004724, allocations: 0 / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.004727, allocations: 4 kB / 0.8795 GB, free: 4.562 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.0005067/0.005234, allocations: 364.2 kB / 0.8799 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.005271, allocations: 8.031 kB / 0.8799 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002938/0.005565, allocations: 16.88 kB / 0.8799 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.005698, allocations: 116 kB / 0.88 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.005713, allocations: 4.359 kB / 0.88 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.005726, allocations: 4.375 kB / 0.88 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001566/0.005882, allocations: 42.25 kB / 0.8801 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.005891, allocations: 192 / 0.8801 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.005902, allocations: 4.312 kB / 0.8801 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.005908, allocations: 7.938 kB / 0.8801 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.006038, allocations: 27.97 kB / 0.8801 GB, free: 3.918 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000452/0.00649, allocations: 256.7 kB / 0.8803 GB, free: 3.633 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.006624, allocations: 44.17 kB / 0.8804 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.389e-05/0.006698, allocations: 23.73 kB / 0.8804 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.006719, allocations: 5.062 kB / 0.8804 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.006761, allocations: 45.27 kB / 0.8804 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.006761, allocations: 0 / 0.8804 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0003069/0.007068, allocations: 70.7 kB / 0.8805 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.007117, allocations: 52.41 kB / 0.8806 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.007257, allocations: 165.9 kB / 0.8807 GB, free: 3.176 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.007276, allocations: 25.7 kB / 0.8807 GB, free: 3.145 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/0.007362, allocations: 135.5 kB / 0.8809 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.343e-05/0.007385, allocations: 11.89 kB / 0.8809 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.007431, allocations: 26.8 kB / 0.8809 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002599/0.007691, allocations: 496.1 kB / 0.8814 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.143e-05/0.007753, allocations: 12 kB / 0.8814 GB, free: 2.457 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.315e-05/0.007806, allocations: 15.92 kB / 0.8814 GB, free: 2.441 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.007926, allocations: 35.67 kB / 0.8814 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.007928, allocations: 0 / 0.8814 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001639/0.008092, allocations: 58.27 kB / 0.8815 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.008109, allocations: 13 kB / 0.8815 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.008114, allocations: 0 / 0.8815 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.008127, allocations: 0 / 0.8815 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.00824, allocations: 4.594 kB / 0.8815 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.008244, allocations: 1.531 kB / 0.8815 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.768e-05/0.008302, allocations: 8.234 kB / 0.8815 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.008311, allocations: 4 kB / 0.8815 GB, free: 2.312 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 0.0001138/0.008425, allocations: 161.5 kB / 0.8817 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.008453, allocations: 7.938 kB / 0.8817 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.00849, allocations: 8.031 kB / 0.8817 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.008492, allocations: 0 / 0.8817 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.008495, allocations: 224 / 0.8817 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.008497, allocations: 4 kB / 0.8817 GB, free: 2.125 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.008661, allocations: 124.6 kB / 0.8818 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.008662, allocations: 0 / 0.8818 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.666e-05/0.008739, allocations: 7.984 kB / 0.8818 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.00874, allocations: 0 / 0.8818 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.008751, allocations: 3.938 kB / 0.8818 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.008752, allocations: 4 kB / 0.8818 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.008753, allocations: 0 / 0.8818 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.009011, allocations: 211.8 kB / 0.882 GB, free: 1.727 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.145e-06/0.00902, allocations: 8.016 kB / 0.882 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.009036, allocations: 3.938 kB / 0.8821 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.585e-05/0.009132, allocations: 4 kB / 0.8821 GB, free: 1.711 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.009171, allocations: 3.938 kB / 0.8821 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.009177, allocations: 3.984 kB / 0.8821 GB, free: 1.703 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.724e-05/0.009255, allocations: 127.2 kB / 0.8822 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.009255, allocations: 4 kB / 0.8822 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002065/0.009461, allocations: 4 kB / 0.8822 GB, free: 1.57 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 0.0001098/0.009571, allocations: 91.25 kB / 0.8823 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001769/0.009748, allocations: 43.66 kB / 0.8823 GB, free: 1.426 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.009749, allocations: 0 / 0.8823 GB, free: 1.426 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.41e-05/0.009823, allocations: 19.69 kB / 0.8823 GB, free: 1.402 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.01009, allocations: 11.98 kB / 0.8824 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003338/0.01042, allocations: 122.2 kB / 0.8825 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.605e-05/0.01049, allocations: 55.36 kB / 0.8825 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.418e-05/0.01053, allocations: 8.125 kB / 0.8825 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.982e-05/0.01057, allocations: 12.48 kB / 0.8825 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of SimCode: time 4.2e-07/0.01057, allocations: 0 / 0.8825 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of Templates: time 0.003266/0.01384, allocations: 0.606 MB / 0.8831 GB, free: 0.5547 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.470831407001242]