Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_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.001133/0.001133, allocations: 107.9 kB / 16.41 MB, free: 6.488 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.001073/0.001073, allocations: 183 kB / 17.34 MB, free: 5.766 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.344/2.344, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 75.83 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.891/0.8924, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002831/0.8953, allocations: 1.428 MB / 1.09 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008887/0.8962, allocations: 478.9 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.141e-05/0.8963, allocations: 1.031 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.051e-05/0.8963, allocations: 4.641 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.161e-05/0.8964, allocations: 1.922 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.8967, allocations: 27.47 kB / 1.091 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.15e-05/0.8968, allocations: 28.19 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.8969, allocations: 9.062 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.906e-05/0.897, allocations: 10.31 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.982e-05/0.897, allocations: 13.61 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.897, allocations: 2.219 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.468e-05/0.8971, allocations: 22.06 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.64e-05/0.8971, allocations: 10.19 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.719e-05/0.8972, allocations: 11.12 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.8973, allocations: 35.69 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.8973, allocations: 0 / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.274e-06/0.8973, allocations: 0 / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.8973, allocations: 0.6562 kB / 1.091 GB, free: 4.109 MB / 0.8575 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.0004258/0.8978, allocations: 353.9 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.8978, allocations: 10.08 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.62e-05/0.8979, allocations: 2.781 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.037e-05/0.898, allocations: 163 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.898, allocations: 2.094 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.898, allocations: 1.562 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.8982, allocations: 56.78 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.8982, allocations: 0 / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.8982, allocations: 4 kB / 1.091 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.8982, allocations: 1.75 kB / 1.091 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.8984, allocations: 32.45 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003054/0.8987, allocations: 255.8 kB / 1.091 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.8989, allocations: 40.33 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.668e-05/0.899, allocations: 28.16 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001156/0.8991, allocations: 87.33 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.8991, allocations: 31.27 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.8991, allocations: 0 / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003673/0.8995, allocations: 84.48 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.8995, allocations: 52.16 kB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.345e-05/0.8996, allocations: 107.5 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.8996, allocations: 30.42 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.587e-05/0.8997, allocations: 85.64 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.8997, allocations: 11.66 kB / 1.092 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-05/0.8997, allocations: 16.41 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.568e-05/0.8998, allocations: 313.1 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.936e-05/0.8999, allocations: 22.08 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.891e-05/0.9, allocations: 14.95 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.9001, allocations: 44.95 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.9002, allocations: 0 / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001931/0.9004, allocations: 67.84 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.9004, allocations: 5.219 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.9004, allocations: 1.188 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.9004, allocations: 0.5625 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.071e-05/0.9005, allocations: 12.88 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.9005, allocations: 0 / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.579e-05/0.9006, allocations: 6.406 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.9006, allocations: 1.656 kB / 1.092 GB, free: 2.289 MB / 0.8575 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 6.156e-05/0.9006, allocations: 120.3 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.9007, allocations: 1.625 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.9009, allocations: 71.64 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.9009, allocations: 1.797 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.9009, allocations: 0 / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.9009, allocations: 0 / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.9011, allocations: 160.5 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.9011, allocations: 1.219 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.409e-05/0.9011, allocations: 12.58 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.9011, allocations: 1.062 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.9012, allocations: 4.797 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.9012, allocations: 5 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.9012, allocations: 0 / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/0.9014, allocations: 158.7 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/0.9014, allocations: 83.02 kB / 1.093 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.9014, allocations: 1.875 kB / 1.093 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.428e-05/0.9015, allocations: 10.06 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.669e-05/0.9016, allocations: 1.891 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.9016, allocations: 2 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.887e-05/0.9016, allocations: 87.89 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9016, allocations: 1.281 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002223/0.9018, allocations: 6.203 kB / 1.093 GB, free: 1.594 MB / 0.8575 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.0001564/0.902, allocations: 107.2 kB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.9022, allocations: 39.5 kB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.9022, allocations: 0 / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.079e-05/0.9023, allocations: 17.25 kB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.9027, allocations: 20.16 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003014/0.903, allocations: 138.6 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.9031, allocations: 0.6764 MB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.546e-05/0.9032, allocations: 9.047 kB / 1.094 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.9032, allocations: 0.75 kB / 1.094 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of Templates: time 0.002476/0.9057, allocations: 0.6488 MB / 1.095 GB, free: 0.582 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches