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.001339/0.001339, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00156/0.00156, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.48/1.48, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.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.466/2.466, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 64.03 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8611/0.8624, allocations: 140.4 MB / 0.9491 GB, free: 9.301 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002981/0.8654, allocations: 1.492 MB / 0.9505 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000758/0.8662, allocations: 461.8 kB / 0.951 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.658e-05/0.8662, allocations: 1.375 kB / 0.951 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.714e-05/0.8663, allocations: 3.938 kB / 0.951 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.805e-05/0.8664, allocations: 5.312 kB / 0.951 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.8666, allocations: 22.8 kB / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.552e-05/0.8667, allocations: 25.55 kB / 0.951 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.8668, allocations: 6.734 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.43e-05/0.8669, allocations: 12.11 kB / 0.9511 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.159e-05/0.867, allocations: 12.06 kB / 0.9511 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.867, allocations: 5.375 kB / 0.9511 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.881e-05/0.8671, allocations: 25.53 kB / 0.9511 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.196e-05/0.8671, allocations: 1.375 kB / 0.9511 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.409e-05/0.8671, allocations: 10.69 kB / 0.9511 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.8672, allocations: 36.12 kB / 0.9511 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.8673, allocations: 0 / 0.9511 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.455e-06/0.8673, allocations: 1.375 kB / 0.9511 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.762e-06/0.8673, allocations: 0 / 0.9511 GB, free: 7.66 MB / 0.7169 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.0004356/0.8677, allocations: 339.2 kB / 0.9515 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.8678, allocations: 13.62 kB / 0.9515 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.8678, allocations: 6.219 kB / 0.9515 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.4e-05/0.8679, allocations: 167.1 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.8679, allocations: 384 / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.8679, allocations: 1.75 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001777/0.8681, allocations: 56.92 kB / 0.9517 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.8681, allocations: 1.375 kB / 0.9517 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.8681, allocations: 0 / 0.9517 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.8682, allocations: 4 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.8683, allocations: 39.2 kB / 0.9517 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.8686, allocations: 249.7 kB / 0.952 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.8688, allocations: 43.27 kB / 0.952 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.721e-05/0.8689, allocations: 23.81 kB / 0.9521 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.869, allocations: 88.3 kB / 0.9521 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.8691, allocations: 38.48 kB / 0.9522 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.8691, allocations: 0 / 0.9522 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003764/0.8694, allocations: 74.09 kB / 0.9522 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.8695, allocations: 55.53 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.677e-05/0.8696, allocations: 103.6 kB / 0.9524 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.8696, allocations: 27.08 kB / 0.9524 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.415e-05/0.8696, allocations: 89.3 kB / 0.9525 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.8697, allocations: 0 / 0.9525 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.8697, allocations: 20.2 kB / 0.9525 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.883e-05/0.8698, allocations: 312.1 kB / 0.9528 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.623e-05/0.8698, allocations: 13.52 kB / 0.9528 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.962e-05/0.8699, allocations: 25.11 kB / 0.9529 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.8701, allocations: 44.91 kB / 0.9529 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8701, allocations: 0 / 0.9529 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001787/0.8703, allocations: 67.73 kB / 0.953 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.8703, allocations: 9.609 kB / 0.953 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.8703, allocations: 4 kB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.8703, allocations: 1.094 kB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.914e-05/0.8704, allocations: 6.531 kB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.8704, allocations: 0 / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.591e-05/0.8705, allocations: 11.42 kB / 0.953 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.8705, allocations: 0.9375 kB / 0.953 GB, free: 5.738 MB / 0.7169 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 7.134e-05/0.8706, allocations: 115.2 kB / 0.9531 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.8706, allocations: 1.25 kB / 0.9531 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.8708, allocations: 87.11 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.8709, allocations: 1.312 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.8709, allocations: 0 / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.8709, allocations: 1.344 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.871, allocations: 161.3 kB / 0.9533 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.871, allocations: 1.625 kB / 0.9534 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.385e-05/0.8711, allocations: 8.828 kB / 0.9534 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.8711, allocations: 5.719 kB / 0.9534 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.8711, allocations: 0 / 0.9534 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.8711, allocations: 0 / 0.9534 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.8711, allocations: 1.625 kB / 0.9534 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.8713, allocations: 170.2 kB / 0.9535 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/0.8714, allocations: 82.36 kB / 0.9536 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.8714, allocations: 9.5 kB / 0.9536 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.165e-05/0.8715, allocations: 6.641 kB / 0.9536 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.8715, allocations: 1.5 kB / 0.9536 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.8715, allocations: 1.438 kB / 0.9536 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.352e-05/0.8716, allocations: 87.36 kB / 0.9537 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8716, allocations: 0 / 0.9537 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002319/0.8718, allocations: 9.656 kB / 0.9537 GB, free: 4.98 MB / 0.7169 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.00022/0.872, allocations: 98.22 kB / 0.9538 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002401/0.8723, allocations: 45.83 kB / 0.9539 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.8723, allocations: 0 / 0.9539 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.696e-05/0.8724, allocations: 19.36 kB / 0.9539 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.8728, allocations: 11.81 kB / 0.9539 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003906/0.8732, allocations: 114.4 kB / 0.954 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.8735, allocations: 0.6802 MB / 0.9547 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.056e-05/0.8735, allocations: 1.344 kB / 0.9547 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.8735, allocations: 12.72 kB / 0.9547 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.8736, allocations: 0 / 0.9547 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of Templates: time 0.003262/0.8768, allocations: 0.5052 MB / 0.9552 GB, free: 3.758 MB / 0.7169 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches