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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.531/2.531, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.00106, allocations: 177.3 kB / 498.1 MB, free: 5.746 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 223.2 MB / 0.7948 GB, free: 18.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008895/0.0008895, allocations: 100.2 kB / 0.9346 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.000379, allocations: 11.94 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.315, allocations: 142.4 MB / 1.223 GB, free: 89.57 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2019/0.5169, allocations: 149.1 MB / 1.369 GB, free: 4.242 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.5173, allocations: 75.95 kB / 1.369 GB, free: 4.168 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002546/0.5198, allocations: 0.8887 MB / 1.369 GB, free: 3.277 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.437e-06/0.5198, allocations: 0 / 1.369 GB, free: 3.277 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.5199, allocations: 4 kB / 1.369 GB, free: 3.273 MB / 0.8698 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.0002921/0.5202, allocations: 323.3 kB / 1.37 GB, free: 2.91 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.5202, allocations: 8.031 kB / 1.37 GB, free: 2.902 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.5203, allocations: 8 kB / 1.37 GB, free: 2.895 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.5204, allocations: 163 kB / 1.37 GB, free: 2.695 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.5204, allocations: 0 / 1.37 GB, free: 2.695 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.283e-05/0.5205, allocations: 4 kB / 1.37 GB, free: 2.691 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.5206, allocations: 33.69 kB / 1.37 GB, free: 2.652 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.5206, allocations: 0 / 1.37 GB, free: 2.652 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.5206, allocations: 4 kB / 1.37 GB, free: 2.648 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.5206, allocations: 0 / 1.37 GB, free: 2.648 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.77e-05/0.5207, allocations: 7.938 kB / 1.37 GB, free: 2.641 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002124/0.5209, allocations: 165.5 kB / 1.37 GB, free: 2.43 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.5211, allocations: 30.61 kB / 1.37 GB, free: 2.391 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.5212, allocations: 81.09 kB / 1.37 GB, free: 2.293 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.5213, allocations: 38.56 kB / 1.37 GB, free: 2.246 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.5213, allocations: 0 / 1.37 GB, free: 2.246 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.004172/0.5255, allocations: 0.556 MB / 1.371 GB, free: 1.684 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/0.5256, allocations: 63.41 kB / 1.371 GB, free: 1.609 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.296e-05/0.5256, allocations: 85 kB / 1.371 GB, free: 1.52 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.5257, allocations: 25.7 kB / 1.371 GB, free: 1.488 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.034e-05/0.5257, allocations: 80.14 kB / 1.371 GB, free: 1.406 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.928e-05/0.5258, allocations: 15.73 kB / 1.371 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.5258, allocations: 8 kB / 1.371 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.526, allocations: 314.8 kB / 1.371 GB, free: 1.066 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005655/0.5266, allocations: 83.89 kB / 1.371 GB, free: 0.9844 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005791/0.5272, allocations: 106.5 kB / 1.372 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000598/0.5278, allocations: 87.95 kB / 1.372 GB, free: 0.7852 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.5278, allocations: 0 / 1.372 GB, free: 0.7852 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001317/0.5291, allocations: 209.6 kB / 1.372 GB, free: 0.5742 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.5291, allocations: 4 kB / 1.372 GB, free: 0.5703 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.5292, allocations: 0 / 1.372 GB, free: 0.5703 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/0.5292, allocations: 4 kB / 1.372 GB, free: 0.5664 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/0.5296, allocations: 51.94 kB / 1.372 GB, free: 0.5156 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.5296, allocations: 0 / 1.372 GB, free: 0.5156 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.53, allocations: 43.97 kB / 1.372 GB, free: 484 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.53, allocations: 4 kB / 1.372 GB, free: 480 kB / 0.8698 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 0.0001295/0.5301, allocations: 117.7 kB / 1.372 GB, free: 352 kB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.5302, allocations: 12.03 kB / 1.372 GB, free: 340 kB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.5316, allocations: 237.1 kB / 1.372 GB, free: 96 kB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.5316, allocations: 0 / 1.372 GB, free: 96 kB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.5316, allocations: 0 / 1.372 GB, free: 96 kB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.5316, allocations: 0 / 1.372 GB, free: 96 kB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.5333, allocations: 458.4 kB / 1.373 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5333, allocations: 0 / 1.373 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/0.5337, allocations: 51.97 kB / 1.373 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.5337, allocations: 4 kB / 1.373 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.5337, allocations: 3.984 kB / 1.373 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.5337, allocations: 0 / 1.373 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5337, allocations: 0 / 1.373 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.535, allocations: 307.3 kB / 1.373 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.5351, allocations: 81.11 kB / 1.373 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.5351, allocations: 0 / 1.373 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003725/0.5355, allocations: 35.98 kB / 1.373 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.5355, allocations: 11.98 kB / 1.373 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.5355, allocations: 4 kB / 1.373 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.527e-05/0.5356, allocations: 75.28 kB / 1.373 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5356, allocations: 0 / 1.373 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002728/0.5359, allocations: 8 kB / 1.373 GB, free: 14.98 MB / 0.8855 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.0002733/0.5362, allocations: 111 kB / 1.373 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001278/0.5375, allocations: 183.9 kB / 1.374 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.5375, allocations: 0 / 1.374 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005746/0.5381, allocations: 88.08 kB / 1.374 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.5382, allocations: 11.12 kB / 1.374 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.5394, allocations: 222.6 kB / 1.374 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.5396, allocations: 0.6809 MB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002261/0.5399, allocations: 28 kB / 1.375 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.065e-05/0.5399, allocations: 15.42 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of SimCode: time 7.41e-07/0.5399, allocations: 0 / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of Templates: time 0.002729/0.5427, allocations: 0.7876 MB / 1.375 GB, free: 12.8 MB / 0.8855 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","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches