Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.001516/0.001516, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.592/1.592, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.489/2.489, allocations: 390.9 MB / 0.666 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005291/0.0005292, allocations: 12 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7621/0.7627, allocations: 142.4 MB / 0.9544 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.000764/0.7635, allocations: 323.3 kB / 0.9548 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.7646, allocations: 1.07 MB / 0.9558 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.247e-05/0.7647, allocations: 4 kB / 0.9558 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.204e-05/0.7647, allocations: 1.5 kB / 0.9558 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002317/0.7649, allocations: 21.95 kB / 0.9558 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 2.615e-06/0.7649, allocations: 0 / 0.9558 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.764e-05/0.765, allocations: 6 kB / 0.9558 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.487e-05/0.765, allocations: 4 kB / 0.9558 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.629e-05/0.765, allocations: 5.078 kB / 0.9558 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.775e-05/0.7651, allocations: 1.438 kB / 0.9558 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.296e-06/0.7651, allocations: 1.094 kB / 0.9558 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.829e-05/0.7652, allocations: 20.14 kB / 0.9559 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.526e-06/0.7652, allocations: 4 kB / 0.9559 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.7652, allocations: 25.7 kB / 0.9559 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.63e-05/0.7653, allocations: 12.19 kB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7653, allocations: 0 / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.096e-06/0.7653, allocations: 1.344 kB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.7653, allocations: 0 / 0.9559 GB, free: 6.5 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.0001931/0.7655, allocations: 318.3 kB / 0.9562 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.7656, allocations: 8.625 kB / 0.9562 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.7656, allocations: 9.172 kB / 0.9562 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.083e-05/0.7657, allocations: 159.1 kB / 0.9564 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.7657, allocations: 13.33 kB / 0.9564 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.7657, allocations: 1.219 kB / 0.9564 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.553e-05/0.7658, allocations: 37.75 kB / 0.9564 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.7658, allocations: 0 / 0.9564 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.7658, allocations: 1.906 kB / 0.9564 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.7659, allocations: 0 / 0.9564 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.657e-05/0.7659, allocations: 6.766 kB / 0.9564 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000107/0.766, allocations: 152.8 kB / 0.9566 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.7662, allocations: 38.33 kB / 0.9566 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.841e-05/0.7662, allocations: 11.8 kB / 0.9566 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.7663, allocations: 80.11 kB / 0.9567 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.7664, allocations: 35.55 kB / 0.9567 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.7664, allocations: 0 / 0.9567 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.003678/0.7701, allocations: 0.5617 MB / 0.9573 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.7701, allocations: 56.8 kB / 0.9573 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.122e-05/0.7701, allocations: 97.81 kB / 0.9574 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.7702, allocations: 30.92 kB / 0.9575 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.191e-05/0.7702, allocations: 84.08 kB / 0.9575 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.7702, allocations: 22.31 kB / 0.9576 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.7702, allocations: 0 / 0.9576 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.7703, allocations: 312.1 kB / 0.9579 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004885/0.7708, allocations: 86.64 kB / 0.9579 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004721/0.7713, allocations: 102.6 kB / 0.958 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004845/0.7717, allocations: 91.64 kB / 0.9581 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.7718, allocations: 0 / 0.9581 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001016/0.7728, allocations: 210.2 kB / 0.9583 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.7728, allocations: 5.375 kB / 0.9583 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.7728, allocations: 1.375 kB / 0.9583 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.7728, allocations: 1.375 kB / 0.9583 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.7732, allocations: 49.12 kB / 0.9584 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.7732, allocations: 5.359 kB / 0.9584 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.7735, allocations: 38.42 kB / 0.9584 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.7735, allocations: 6.703 kB / 0.9584 GB, free: 4.508 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.158e-05/0.7735, allocations: 112.6 kB / 0.9585 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.7736, allocations: 9.375 kB / 0.9586 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.7747, allocations: 237 kB / 0.9588 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.7747, allocations: 1.375 kB / 0.9588 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.7747, allocations: 0 / 0.9588 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.7747, allocations: 1.375 kB / 0.9588 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.7759, allocations: 457.7 kB / 0.9592 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.7759, allocations: 432 / 0.9592 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.7763, allocations: 49.06 kB / 0.9593 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.7763, allocations: 1.344 kB / 0.9593 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.7763, allocations: 0 / 0.9593 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.7763, allocations: 1.438 kB / 0.9593 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.7763, allocations: 3.953 kB / 0.9593 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.7773, allocations: 305.9 kB / 0.9596 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.765e-05/0.7773, allocations: 81.09 kB / 0.9596 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.7774, allocations: 5.75 kB / 0.9596 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.7777, allocations: 38.31 kB / 0.9597 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.441e-05/0.7777, allocations: 5.188 kB / 0.9597 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.7777, allocations: 5.922 kB / 0.9597 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.635e-05/0.7777, allocations: 79.22 kB / 0.9598 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7777, allocations: 3.938 kB / 0.9598 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002588/0.778, allocations: 10.28 kB / 0.9598 GB, free: 3.508 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000167/0.7782, allocations: 112.9 kB / 0.9599 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001075/0.7793, allocations: 175.9 kB / 0.9601 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7793, allocations: 0.9375 kB / 0.9601 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004967/0.7798, allocations: 87.45 kB / 0.9601 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.78, allocations: 9.938 kB / 0.9601 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009391/0.781, allocations: 217.2 kB / 0.9604 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.7811, allocations: 0.6736 MB / 0.961 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000219/0.7813, allocations: 32.42 kB / 0.961 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.875e-05/0.7814, allocations: 9.406 kB / 0.9611 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7814, allocations: 1.125 kB / 0.9611 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of Templates: time 0.002651/0.784, allocations: 0.7985 MB / 0.9618 GB, free: 2.023 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches