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.001354/0.001354, allocations: 79.73 kB / 19.76 MB, free: 2.031 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.001414/0.001414, allocations: 157.6 kB / 23.01 MB, free: 4.941 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.408/1.408, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.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 2.84/2.84, allocations: 394.2 MB / 0.6387 GB, free: 11.92 MB / 0.6075 GB " [Timeout remaining time 177] 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.00224/0.00224, allocations: 67.89 kB / 1.009 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.801/0.8032, allocations: 181.8 MB / 1.187 GB, free: 16.19 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002287/0.8055, allocations: 1.469 MB / 1.188 GB, free: 15.18 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.000775/0.8063, allocations: 481.2 kB / 1.188 GB, free: 14.87 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.8063, allocations: 1.188 kB / 1.188 GB, free: 14.87 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.623e-05/0.8063, allocations: 0.6094 kB / 1.188 GB, free: 14.87 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.373e-05/0.8064, allocations: 9.703 kB / 1.189 GB, free: 14.86 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001909/0.8066, allocations: 18.72 kB / 1.189 GB, free: 14.86 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 6.656e-05/0.8066, allocations: 29.42 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 8.557e-05/0.8067, allocations: 7.625 kB / 1.189 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 5.866e-05/0.8068, allocations: 10.12 kB / 1.189 GB, free: 14.83 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 3.596e-05/0.8068, allocations: 17.64 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.8068, allocations: 2.875 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 5.892e-05/0.8069, allocations: 11.55 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.426e-05/0.8069, allocations: 4.844 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 1.806e-05/0.8069, allocations: 8.078 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 9.728e-05/0.807, allocations: 38.89 kB / 1.189 GB, free: 14.79 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.807, allocations: 0.5625 kB / 1.189 GB, free: 14.79 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.313e-06/0.807, allocations: 0 / 1.189 GB, free: 14.79 MB / 1.076 GB Notification: Performance of Transformations before backend: time 9.888e-06/0.807, allocations: 0 / 1.189 GB, free: 14.79 MB / 1.076 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.0003458/0.8074, allocations: 269.2 kB / 1.189 GB, free: 14.53 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.8074, allocations: 10.28 kB / 1.189 GB, free: 14.53 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/0.8077, allocations: 13.88 kB / 1.189 GB, free: 14.53 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.454e-05/0.8077, allocations: 110.6 kB / 1.189 GB, free: 14.4 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.8078, allocations: 1.844 kB / 1.189 GB, free: 14.4 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.8078, allocations: 4.375 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.8079, allocations: 60.94 kB / 1.189 GB, free: 14.35 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.8079, allocations: 5.172 kB / 1.189 GB, free: 14.35 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.808, allocations: 0 / 1.189 GB, free: 14.35 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.808, allocations: 0.7969 kB / 1.189 GB, free: 14.35 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.8081, allocations: 35.22 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000293/0.8084, allocations: 204.7 kB / 1.189 GB, free: 14.13 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.8086, allocations: 46.67 kB / 1.189 GB, free: 14.1 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.882e-05/0.8087, allocations: 28.38 kB / 1.189 GB, free: 14.08 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.8087, allocations: 0 / 1.189 GB, free: 14.08 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.118e-05/0.8087, allocations: 33.28 kB / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 8.81e-07/0.8087, allocations: 0 / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0003556/0.809, allocations: 87.75 kB / 1.19 GB, free: 14 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.728e-05/0.8091, allocations: 53.31 kB / 1.19 GB, free: 13.94 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.887e-05/0.8091, allocations: 106.4 kB / 1.19 GB, free: 13.83 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 7.784e-06/0.8091, allocations: 27.05 kB / 1.19 GB, free: 13.8 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.396e-05/0.8091, allocations: 86.17 kB / 1.19 GB, free: 13.71 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.8092, allocations: 8.406 kB / 1.19 GB, free: 13.71 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.8092, allocations: 14.86 kB / 1.19 GB, free: 13.69 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.929e-05/0.8092, allocations: 316.9 kB / 1.19 GB, free: 13.38 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.999e-05/0.8093, allocations: 15.55 kB / 1.19 GB, free: 13.38 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.94e-05/0.8094, allocations: 19.14 kB / 1.19 GB, free: 13.37 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.8096, allocations: 51.67 kB / 1.19 GB, free: 13.35 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.8096, allocations: 1.312 kB / 1.19 GB, free: 13.35 MB / 1.076 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000208/0.8098, allocations: 72.66 kB / 1.19 GB, free: 13.3 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.8098, allocations: 5.25 kB / 1.19 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.8098, allocations: 2.062 kB / 1.19 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.8098, allocations: 0 / 1.19 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.8099, allocations: 10.33 kB / 1.19 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.8099, allocations: 4.031 kB / 1.19 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.723e-05/0.81, allocations: 8 kB / 1.19 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.81, allocations: 256 / 1.19 GB, free: 13.3 MB / 1.076 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 4.347e-05/0.81, allocations: 117.3 kB / 1.19 GB, free: 13.18 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.8101, allocations: 5.875 kB / 1.19 GB, free: 13.18 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.8101, allocations: 5.359 kB / 1.19 GB, free: 13.17 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.8101, allocations: 4 kB / 1.19 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.8101, allocations: 0.6562 kB / 1.19 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.8101, allocations: 1.406 kB / 1.19 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.568e-05/0.8102, allocations: 109.5 kB / 1.191 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8102, allocations: 4.641 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.278e-05/0.8103, allocations: 10.08 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.8103, allocations: 1.031 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.8103, allocations: 0 / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.8103, allocations: 1.828 kB / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.8103, allocations: 0 / 1.191 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.8105, allocations: 170.8 kB / 1.191 GB, free: 12.89 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-06/0.8105, allocations: 9.875 kB / 1.191 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.8106, allocations: 1.219 kB / 1.191 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.8107, allocations: 6.281 kB / 1.191 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.8107, allocations: 2.375 kB / 1.191 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.8107, allocations: 1.844 kB / 1.191 GB, free: 12.88 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.304e-05/0.8107, allocations: 85.27 kB / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.8107, allocations: 0 / 1.191 GB, free: 12.8 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002248/0.8109, allocations: 4.562 kB / 1.191 GB, free: 12.8 MB / 1.076 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 7.757e-05/0.811, allocations: 93.02 kB / 1.191 GB, free: 12.71 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002267/0.8112, allocations: 46.36 kB / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.8113, allocations: 0 / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 9.588e-05/0.8113, allocations: 22.03 kB / 1.191 GB, free: 12.7 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.8116, allocations: 20.06 kB / 1.191 GB, free: 12.68 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002502/0.8119, allocations: 107.8 kB / 1.191 GB, free: 12.57 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.795e-05/0.8119, allocations: 64.61 kB / 1.191 GB, free: 12.5 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.824e-05/0.8119, allocations: 3.438 kB / 1.191 GB, free: 12.5 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.735e-05/0.812, allocations: 9.625 kB / 1.191 GB, free: 12.49 MB / 1.076 GB Notification: Performance of SimCode: time 2.9e-07/0.812, allocations: 0 / 1.191 GB, free: 12.49 MB / 1.076 GB Notification: Performance of Templates: time 0.002804/0.8148, allocations: 0.5996 MB / 1.192 GB, free: 12.39 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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/jenkins1/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.420046957093291]