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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 111.1 kB / 16.42 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 191.8 kB / 17.35 MB, free: 5.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.032/3.032, allocations: 461.9 MB / 0.7355 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 68.11 kB / 1.055 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087/1.089, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002701/1.092, allocations: 1.44 MB / 1.21 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00085/1.093, allocations: 474.8 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.822e-05/1.093, allocations: 0 / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.055e-05/1.093, allocations: 3.938 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.266e-05/1.093, allocations: 3.938 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/1.093, allocations: 19.98 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.466e-05/1.093, allocations: 31.91 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/1.093, allocations: 4 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.524e-05/1.093, allocations: 15.92 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.672e-05/1.093, allocations: 15.92 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/1.093, allocations: 4 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.323e-05/1.093, allocations: 15.98 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.115e-05/1.093, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.05e-05/1.094, allocations: 15.92 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001116/1.094, allocations: 31.89 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/1.094, allocations: 0 / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.204e-06/1.094, allocations: 4 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.11e-06/1.094, allocations: 0 / 1.21 GB, free: 11.56 MB / 0.9356 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.0004881/1.094, allocations: 347.3 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/1.094, allocations: 8.031 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/1.094, allocations: 4.938 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/1.094, allocations: 168.2 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/1.094, allocations: 384 / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/1.094, allocations: 4.375 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/1.095, allocations: 53.98 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/1.095, allocations: 0 / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/1.095, allocations: 7.938 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.86e-06/1.095, allocations: 0 / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001632/1.095, allocations: 31.95 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003655/1.095, allocations: 256.9 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/1.095, allocations: 42.5 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.438e-05/1.095, allocations: 16.91 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/1.096, allocations: 85.09 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/1.096, allocations: 34.56 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/1.096, allocations: 0 / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0003609/1.096, allocations: 85.58 kB / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/1.096, allocations: 51.41 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/1.096, allocations: 101.9 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/1.096, allocations: 25.7 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.068e-05/1.096, allocations: 88.12 kB / 1.212 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/1.096, allocations: 13.72 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/1.096, allocations: 9.719 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.096, allocations: 326.9 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.315e-05/1.097, allocations: 11.98 kB / 1.212 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.347e-05/1.097, allocations: 19.97 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/1.097, allocations: 36.83 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/1.097, allocations: 3.938 kB / 1.212 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000188/1.097, allocations: 73.66 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/1.097, allocations: 5.875 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/1.097, allocations: 0 / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/1.097, allocations: 0 / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.079e-05/1.097, allocations: 16.22 kB / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/1.097, allocations: 0 / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.87e-05/1.097, allocations: 8 kB / 1.212 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-06/1.097, allocations: 4.031 kB / 1.212 GB, free: 9.426 MB / 0.9356 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 8.646e-05/1.097, allocations: 121.8 kB / 1.212 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/1.097, allocations: 3.906 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/1.098, allocations: 72.78 kB / 1.212 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/1.098, allocations: 0 / 1.212 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/1.098, allocations: 0 / 1.212 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/1.098, allocations: 77.11 kB / 1.213 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/1.098, allocations: 11.91 kB / 1.213 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.456e-05/1.098, allocations: 7.984 kB / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/1.098, allocations: 3.938 kB / 1.213 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002325/1.098, allocations: 148.9 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002739/1.098, allocations: 238.8 kB / 1.213 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.87e-05/1.098, allocations: 19.92 kB / 1.213 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.718e-05/1.098, allocations: 79.28 kB / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of Backend: time 3.91e-07/1.098, allocations: 0 / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004693/1.099, allocations: 110.4 kB / 1.213 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005262/1.099, allocations: 0.5569 MB / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of Templates: time 0.00332/1.103, allocations: 0.687 MB / 1.214 GB, free: 7.191 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) 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) Reference file matches