Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_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_latest_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.00133/0.001331, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001391/0.001391, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.492/1.492, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.768/2.768, allocations: 482.4 MB / 0.7553 GB, free: 7 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 64.7 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.694/0.696, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00176/0.6978, allocations: 0.5909 MB / 1.083 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.699, allocations: 1.102 MB / 1.085 GB, free: 468 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.687e-05/0.699, allocations: 13.28 kB / 1.085 GB, free: 456 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.094e-05/0.699, allocations: 0 / 1.085 GB, free: 456 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.6993, allocations: 16.67 kB / 1.085 GB, free: 448 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 3.667e-06/0.6993, allocations: 1.281 kB / 1.085 GB, free: 448 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.579e-05/0.6993, allocations: 6.531 kB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.801e-05/0.6994, allocations: 1.984 kB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.363e-05/0.6994, allocations: 2 kB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.879e-05/0.6994, allocations: 1.438 kB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.6994, allocations: 0 / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.707e-05/0.6995, allocations: 25.06 kB / 1.085 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.891e-06/0.6996, allocations: 4 kB / 1.085 GB, free: 428 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.345e-05/0.6996, allocations: 8.516 kB / 1.085 GB, free: 420 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.068e-05/0.6997, allocations: 9.172 kB / 1.085 GB, free: 420 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6997, allocations: 4.75 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6997, allocations: 0 / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.6997, allocations: 0.75 kB / 1.085 GB, free: 416 kB / 0.8262 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.0002053/0.6999, allocations: 319.4 kB / 1.085 GB, free: 56 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.6999, allocations: 9.812 kB / 1.085 GB, free: 56 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.7, allocations: 2.312 kB / 1.085 GB, free: 56 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.7001, allocations: 165.1 kB / 1.085 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.7001, allocations: 6.656 kB / 1.085 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.7001, allocations: 1.719 kB / 1.085 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.726e-05/0.7002, allocations: 40.12 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.7003, allocations: 0 / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.7003, allocations: 0.6562 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.7003, allocations: 4.781 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.379e-05/0.7003, allocations: 5.719 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/0.7005, allocations: 151.8 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.7007, allocations: 44.19 kB / 1.085 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.102e-05/0.7007, allocations: 9.062 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001528/0.7009, allocations: 82.28 kB / 1.085 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.7009, allocations: 36.52 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.7009, allocations: 0 / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5): time 0.00441/0.7053, allocations: 0.5694 MB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.7054, allocations: 53.66 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.778e-05/0.7054, allocations: 93.86 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.7055, allocations: 29.7 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.304e-05/0.7055, allocations: 80.77 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.687e-05/0.7056, allocations: 15.77 kB / 1.086 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.869e-05/0.7056, allocations: 19.75 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7058, allocations: 312.6 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006178/0.7064, allocations: 87.73 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006215/0.707, allocations: 105.3 kB / 1.087 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.7083, allocations: 185.7 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.7083, allocations: 0 / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001339/0.7096, allocations: 217.7 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.7097, allocations: 5.469 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.7097, allocations: 0.625 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.7097, allocations: 1.188 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.7101, allocations: 58.33 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.7101, allocations: 1.5 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003558/0.7105, allocations: 40.12 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.7105, allocations: 4.125 kB / 1.087 GB, free: 14.55 MB / 0.8419 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 0.000104/0.7106, allocations: 107.9 kB / 1.087 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.7107, allocations: 10.14 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.7121, allocations: 242 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.7122, allocations: 1.094 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.7122, allocations: 1.531 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.7122, allocations: 4 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.7138, allocations: 459.4 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.7138, allocations: 0 / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003925/0.7142, allocations: 52.28 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.7142, allocations: 2.094 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.7143, allocations: 6.219 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.7143, allocations: 0 / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.7143, allocations: 3.938 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.7156, allocations: 301.8 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.703e-05/0.7157, allocations: 77.81 kB / 1.089 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.7157, allocations: 6.203 kB / 1.089 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003812/0.7161, allocations: 39.38 kB / 1.089 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.11e-05/0.7161, allocations: 3.891 kB / 1.089 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.7161, allocations: 1.469 kB / 1.089 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.591e-05/0.7162, allocations: 80.44 kB / 1.089 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.01e-07/0.7162, allocations: 0 / 1.089 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002622/0.7165, allocations: 9.891 kB / 1.089 GB, free: 13.68 MB / 0.8419 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.0002012/0.7167, allocations: 107 kB / 1.089 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001334/0.718, allocations: 187.9 kB / 1.089 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.718, allocations: 192 / 1.089 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006257/0.7187, allocations: 92.94 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.7189, allocations: 6.406 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.7202, allocations: 249.7 kB / 1.089 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.7205, allocations: 0.6753 MB / 1.09 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.323e-05/0.7206, allocations: 12.92 kB / 1.09 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.7206, allocations: 0 / 1.09 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of Templates: time 0.002974/0.7236, allocations: 1.115 MB / 1.091 GB, free: 12.6 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches