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.001165/0.001165, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 182.4 kB / 16.92 MB, free: 6.918 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.395/1.395, allocations: 223.3 MB / 241 MB, free: 5.336 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.418/2.418, allocations: 390.9 MB / 0.667 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004566/0.0004566, allocations: 19.92 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6754/0.6759, allocations: 142.4 MB / 0.9557 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0007358/0.6767, allocations: 329.6 kB / 0.956 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.6779, allocations: 1.093 MB / 0.9571 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.43e-05/0.6779, allocations: 4 kB / 0.9571 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.6779, allocations: 0 / 0.9571 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002032/0.6781, allocations: 11.91 kB / 0.9571 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 2.514e-06/0.6782, allocations: 0 / 0.9571 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.106e-05/0.6782, allocations: 4.969 kB / 0.9571 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.529e-05/0.6782, allocations: 9.344 kB / 0.9571 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.432e-05/0.6783, allocations: 5.344 kB / 0.9571 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.068e-05/0.6783, allocations: 4.984 kB / 0.9571 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.664e-06/0.6783, allocations: 3.984 kB / 0.9571 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.67e-05/0.6784, allocations: 16.98 kB / 0.9572 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.472e-06/0.6784, allocations: 4 kB / 0.9572 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.9e-05/0.6784, allocations: 35.02 kB / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.289e-05/0.6785, allocations: 2.938 kB / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.6785, allocations: 1.469 kB / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6785, allocations: 0 / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.6785, allocations: 0 / 0.9572 GB, free: 6.559 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.0001645/0.6787, allocations: 318.5 kB / 0.9575 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.6787, allocations: 8.562 kB / 0.9575 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.607e-05/0.6788, allocations: 10.22 kB / 0.9575 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.959e-05/0.6788, allocations: 160.4 kB / 0.9577 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.6788, allocations: 5.812 kB / 0.9577 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.6789, allocations: 1.812 kB / 0.9577 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.135e-05/0.6789, allocations: 41.91 kB / 0.9577 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.679, allocations: 0 / 0.9577 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.679, allocations: 1.75 kB / 0.9577 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.679, allocations: 0 / 0.9577 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.386e-05/0.679, allocations: 11.05 kB / 0.9577 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001043/0.6791, allocations: 148.9 kB / 0.9579 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.6793, allocations: 34.05 kB / 0.9579 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.81e-05/0.6793, allocations: 11.77 kB / 0.9579 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.6794, allocations: 89.14 kB / 0.958 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.6795, allocations: 35.56 kB / 0.958 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.6795, allocations: 0 / 0.958 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.004223/0.6837, allocations: 0.5735 MB / 0.9586 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.307e-05/0.6837, allocations: 52.38 kB / 0.9586 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.81e-05/0.6838, allocations: 94.67 kB / 0.9587 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.6838, allocations: 29.64 kB / 0.9588 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.067e-05/0.6838, allocations: 81.42 kB / 0.9588 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.077e-05/0.6839, allocations: 21 kB / 0.9589 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.6839, allocations: 14.77 kB / 0.9589 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.063e-05/0.6839, allocations: 316.9 kB / 0.9592 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005993/0.6845, allocations: 82.17 kB / 0.9593 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006001/0.6851, allocations: 103.9 kB / 0.9594 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.6863, allocations: 186.9 kB / 0.9595 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.6863, allocations: 0 / 0.9595 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001245/0.6876, allocations: 226.4 kB / 0.9597 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.6876, allocations: 5.5 kB / 0.9598 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.6876, allocations: 0 / 0.9598 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.6876, allocations: 1.375 kB / 0.9598 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004053/0.6881, allocations: 50.5 kB / 0.9598 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.6881, allocations: 1.375 kB / 0.9598 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003557/0.6884, allocations: 42.22 kB / 0.9598 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.6885, allocations: 2.75 kB / 0.9598 GB, free: 4.496 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.236e-05/0.6885, allocations: 111.2 kB / 0.96 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.6885, allocations: 5.312 kB / 0.96 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.6899, allocations: 238.4 kB / 0.9602 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.6899, allocations: 1.375 kB / 0.9602 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.6899, allocations: 0 / 0.9602 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.69, allocations: 0 / 0.9602 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.6914, allocations: 451.2 kB / 0.9606 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.6914, allocations: 4.25 kB / 0.9606 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003949/0.6918, allocations: 49.25 kB / 0.9607 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.6918, allocations: 5.375 kB / 0.9607 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.6918, allocations: 3.984 kB / 0.9607 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.6919, allocations: 5.406 kB / 0.9607 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.6919, allocations: 0 / 0.9607 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.6932, allocations: 301.6 kB / 0.961 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.931e-05/0.6932, allocations: 85.97 kB / 0.9611 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.6932, allocations: 1.031 kB / 0.9611 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000382/0.6936, allocations: 37.95 kB / 0.9611 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.816e-05/0.6936, allocations: 5.891 kB / 0.9611 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.6936, allocations: 1.906 kB / 0.9611 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.333e-05/0.6937, allocations: 79.28 kB / 0.9612 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.72e-07/0.6937, allocations: 0 / 0.9612 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002599/0.6939, allocations: 18 kB / 0.9612 GB, free: 3.5 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 (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.0001495/0.6941, allocations: 108.8 kB / 0.9613 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001284/0.6954, allocations: 181.5 kB / 0.9615 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.6954, allocations: 0 / 0.9615 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0006102/0.696, allocations: 91.7 kB / 0.9616 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.6962, allocations: 6.188 kB / 0.9616 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.6974, allocations: 242.9 kB / 0.9618 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.561e-05/0.6975, allocations: 0.6775 MB / 0.9625 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.621e-05/0.6976, allocations: 10.62 kB / 0.9625 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6976, allocations: 0 / 0.9625 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of Templates: time 0.002311/0.6999, allocations: 1.102 MB / 0.9635 GB, free: 1.859 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/jenkins1/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