Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00174/0.00174, allocations: 106.1 kB / 16.45 MB, free: 6.453 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.001661/0.001661, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.493/1.493, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.289/3.289, allocations: 0.4899 GB / 0.7915 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_12_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.002081/0.002081, allocations: 79.75 kB / 1.149 GB, free: 25.96 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3232, allocations: 176.1 MB / 1.321 GB, free: 2.789 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002866/0.3261, allocations: 1.454 MB / 1.323 GB, free: 1.324 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009525/0.327, allocations: 0.4914 MB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.4e-05/0.3271, allocations: 0 / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.693e-05/0.3271, allocations: 3.938 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.772e-05/0.3272, allocations: 3.938 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.3274, allocations: 27.97 kB / 1.323 GB, free: 0.793 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.748e-05/0.3275, allocations: 27.86 kB / 1.323 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.212e-05/0.3275, allocations: 8 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.098e-05/0.3276, allocations: 15.92 kB / 1.323 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.817e-05/0.3277, allocations: 7.938 kB / 1.323 GB, free: 0.7344 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.3277, allocations: 7.938 kB / 1.323 GB, free: 0.7266 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.931e-05/0.3278, allocations: 23.97 kB / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.3278, allocations: 3.984 kB / 1.323 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.3278, allocations: 11.94 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.3279, allocations: 35.83 kB / 1.323 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3279, allocations: 0 / 1.323 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3279, allocations: 4 kB / 1.323 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.023e-05/0.3279, allocations: 0 / 1.323 GB, free: 0.6484 MB / 1.014 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.0004909/0.3284, allocations: 343.4 kB / 1.324 GB, free: 272 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3285, allocations: 11.98 kB / 1.324 GB, free: 260 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.3285, allocations: 4.938 kB / 1.324 GB, free: 256 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.3286, allocations: 168.3 kB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.3287, allocations: 384 / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.3287, allocations: 4.375 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002121/0.3289, allocations: 53.98 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3289, allocations: 11.98 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.3289, allocations: 0 / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3289, allocations: 0 / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.3291, allocations: 35.95 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003694/0.3295, allocations: 248.9 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/0.3296, allocations: 42.48 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.865e-05/0.3297, allocations: 20.91 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/0.3298, allocations: 85.09 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.3299, allocations: 34.55 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 9.61e-07/0.3299, allocations: 0 / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003817/0.3303, allocations: 85.59 kB / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.3303, allocations: 51.41 kB / 1.324 GB, free: 15.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.862e-05/0.3304, allocations: 105.8 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.3304, allocations: 29.64 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/0.3305, allocations: 88.09 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.3305, allocations: 7.938 kB / 1.325 GB, free: 15.03 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/0.3305, allocations: 17.83 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3307, allocations: 314.8 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.424e-05/0.3307, allocations: 15.98 kB / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.603e-05/0.3308, allocations: 15.98 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.331, allocations: 44.75 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.331, allocations: 4.062 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000218/0.3312, allocations: 69.56 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3312, allocations: 7.984 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3312, allocations: 0 / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3312, allocations: 0 / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.693e-05/0.3313, allocations: 8 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.3313, allocations: 3.938 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.891e-05/0.3314, allocations: 7.984 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.3314, allocations: 4.031 kB / 1.325 GB, free: 14.5 MB / 1.029 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.168e-05/0.3315, allocations: 117.8 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.3315, allocations: 0 / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002423/0.3318, allocations: 68.77 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.3318, allocations: 4 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3318, allocations: 0 / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3318, allocations: 32 / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.3319, allocations: 169.5 kB / 1.326 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3319, allocations: 0 / 1.326 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.1e-05/0.332, allocations: 11.98 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.332, allocations: 0 / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.962e-06/0.332, allocations: 0 / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.332, allocations: 256 / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.332, allocations: 0 / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.3323, allocations: 171.4 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.3323, allocations: 81.11 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.3323, allocations: 4 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.432e-05/0.3324, allocations: 3.984 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.3324, allocations: 4 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.3324, allocations: 0 / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.588e-05/0.3325, allocations: 87.2 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3325, allocations: 0 / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002387/0.3327, allocations: 16.03 kB / 1.326 GB, free: 13.68 MB / 1.029 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.0001529/0.3329, allocations: 103.1 kB / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.3331, allocations: 39.95 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3331, allocations: 0 / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.282e-05/0.3332, allocations: 19.98 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3335, allocations: 8.062 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002918/0.3338, allocations: 109.3 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.3341, allocations: 0.6768 MB / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.586e-05/0.3341, allocations: 4 kB / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.038e-05/0.3341, allocations: 11.38 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.3341, allocations: 0 / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of Templates: time 0.00319/0.3373, allocations: 0.5653 MB / 1.327 GB, free: 12.09 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.797724479809403]