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.001376/0.001376, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.001518/0.001518, allocations: 209.5 kB / 22.25 MB, free: 4.852 MB / 14.72 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.467/1.467, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 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.356/3.356, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 72.08 kB / 1.186 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3753, allocations: 181.9 MB / 1.364 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002842/0.3782, allocations: 1.464 MB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.3792, allocations: 474.9 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.3793, allocations: 8 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.186e-05/0.3793, allocations: 0 / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.3794, allocations: 3.938 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003549/0.3798, allocations: 23.92 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.3799, allocations: 27.86 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.38, allocations: 4 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.843e-05/0.3801, allocations: 8 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.888e-05/0.3801, allocations: 19.91 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.3801, allocations: 0 / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.464e-05/0.3802, allocations: 15.98 kB / 1.366 GB, free: 11.52 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.046e-05/0.3802, allocations: 8 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.832e-05/0.3803, allocations: 7.938 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.3804, allocations: 39.81 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3804, allocations: 0 / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3804, allocations: 3.938 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.3804, allocations: 0 / 1.366 GB, free: 11.46 MB / 1.061 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.0005641/0.381, allocations: 266.3 kB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.381, allocations: 8.031 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002525/0.3813, allocations: 12.92 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.3814, allocations: 114.5 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3814, allocations: 4.375 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.3815, allocations: 384 / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.3817, allocations: 57.97 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.3817, allocations: 4 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.3817, allocations: 0 / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3817, allocations: 0 / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.3819, allocations: 35.95 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004625/0.3824, allocations: 212.5 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.3825, allocations: 42.44 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.416e-05/0.3826, allocations: 25.97 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.3826, allocations: 0 / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.3826, allocations: 38.55 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.3826, allocations: 0 / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0003998/0.383, allocations: 89.67 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.3831, allocations: 51.41 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.473e-05/0.3832, allocations: 101.9 kB / 1.367 GB, free: 10.28 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.3832, allocations: 25.7 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.521e-05/0.3833, allocations: 88.12 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.3833, allocations: 11.89 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.3833, allocations: 9.719 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.3835, allocations: 318.8 kB / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-05/0.3836, allocations: 11.98 kB / 1.367 GB, free: 9.797 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.603e-05/0.3836, allocations: 28 kB / 1.367 GB, free: 9.77 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.3838, allocations: 40.83 kB / 1.367 GB, free: 9.727 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3838, allocations: 3.938 kB / 1.367 GB, free: 9.723 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002491/0.3841, allocations: 77.53 kB / 1.367 GB, free: 9.641 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3841, allocations: 4 kB / 1.367 GB, free: 9.637 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3841, allocations: 4.094 kB / 1.367 GB, free: 9.633 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.3841, allocations: 0 / 1.367 GB, free: 9.633 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.3843, allocations: 11.98 kB / 1.368 GB, free: 9.621 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.3843, allocations: 0 / 1.368 GB, free: 9.621 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.3844, allocations: 11.98 kB / 1.368 GB, free: 9.609 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.3844, allocations: 0 / 1.368 GB, free: 9.609 MB / 1.061 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 9.708e-05/0.3845, allocations: 113.8 kB / 1.368 GB, free: 9.488 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.3845, allocations: 3.953 kB / 1.368 GB, free: 9.484 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.625e-05/0.3846, allocations: 3.312 kB / 1.368 GB, free: 9.477 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3846, allocations: 8 kB / 1.368 GB, free: 9.469 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3846, allocations: 0 / 1.368 GB, free: 9.469 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.3846, allocations: 0 / 1.368 GB, free: 9.469 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.3847, allocations: 105.3 kB / 1.368 GB, free: 9.336 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3847, allocations: 3.938 kB / 1.368 GB, free: 9.332 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.009e-05/0.3848, allocations: 16.22 kB / 1.368 GB, free: 9.316 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3848, allocations: 0 / 1.368 GB, free: 9.316 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.3848, allocations: 8 kB / 1.368 GB, free: 9.309 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.314e-05/0.3848, allocations: 3.938 kB / 1.368 GB, free: 9.305 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3848, allocations: 4 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.3851, allocations: 163.5 kB / 1.368 GB, free: 9.125 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.497e-05/0.3851, allocations: 7.938 kB / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.3851, allocations: 3.984 kB / 1.368 GB, free: 9.113 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.837e-05/0.3852, allocations: 4 kB / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.3853, allocations: 7.922 kB / 1.368 GB, free: 9.102 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.3853, allocations: 4 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.473e-05/0.3853, allocations: 83.28 kB / 1.368 GB, free: 9.016 MB / 1.061 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3853, allocations: 0 / 1.368 GB, free: 9.016 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002194/0.3855, allocations: 8.031 kB / 1.368 GB, free: 9.008 MB / 1.061 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.0001313/0.3857, allocations: 91.25 kB / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003513/0.386, allocations: 47.89 kB / 1.368 GB, free: 8.859 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.386, allocations: 0 / 1.368 GB, free: 8.859 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/0.3862, allocations: 15.98 kB / 1.368 GB, free: 8.844 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.3865, allocations: 17.12 kB / 1.368 GB, free: 8.828 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003253/0.3868, allocations: 113.6 kB / 1.368 GB, free: 8.691 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.681e-05/0.3869, allocations: 63.34 kB / 1.368 GB, free: 8.609 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.747e-05/0.3869, allocations: 0 / 1.368 GB, free: 8.609 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.679e-05/0.387, allocations: 19.42 kB / 1.368 GB, free: 8.59 MB / 1.061 GB Notification: Performance of SimCode: time 4.8e-07/0.387, allocations: 0 / 1.368 GB, free: 8.59 MB / 1.061 GB Notification: Performance of Templates: time 0.003406/0.3904, allocations: 0.5957 MB / 1.369 GB, free: 8.012 MB / 1.061 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 800] 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.959263639524579]