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/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.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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.037/2.037, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.00109/0.00109, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.363/1.363, allocations: 221.5 MB / 0.7824 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009231, allocations: 98.84 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.574e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2482, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8695/1.118, allocations: 148.9 MB / 1.351 GB, free: 18.49 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/1.118, allocations: 73.75 kB / 1.351 GB, free: 18.49 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003899/1.122, allocations: 1.109 MB / 1.353 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.764e-06/1.122, allocations: 0 / 1.353 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.783e-06/1.122, allocations: 4 kB / 1.353 GB, free: 34.12 MB / 0.8386 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.0003555/1.122, allocations: 337.7 kB / 1.353 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/1.122, allocations: 12.06 kB / 1.353 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.857e-05/1.122, allocations: 5.281 kB / 1.353 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.871e-05/1.123, allocations: 173 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/1.123, allocations: 0 / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/1.123, allocations: 0.75 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.696e-05/1.123, allocations: 14.97 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.183e-05/1.123, allocations: 35.69 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/1.123, allocations: 0 / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/1.123, allocations: 0 / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-06/1.123, allocations: 0 / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003963/1.123, allocations: 244.5 kB / 1.353 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.882e-05/1.123, allocations: 34.25 kB / 1.353 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.092e-05/1.123, allocations: 12.45 kB / 1.353 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/1.123, allocations: 83.05 kB / 1.353 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.379e-05/1.123, allocations: 31.22 kB / 1.353 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/1.123, allocations: 0 / 1.353 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0002279/1.124, allocations: 45.62 kB / 1.354 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.901e-05/1.124, allocations: 59.98 kB / 1.354 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.008e-05/1.124, allocations: 96.28 kB / 1.354 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/1.124, allocations: 26.27 kB / 1.354 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/1.124, allocations: 84.19 kB / 1.354 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/1.124, allocations: 16.42 kB / 1.354 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/1.124, allocations: 0 / 1.354 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001329/1.124, allocations: 316.2 kB / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.644e-05/1.124, allocations: 11.41 kB / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.009e-05/1.124, allocations: 0 / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.255e-05/1.124, allocations: 19.44 kB / 1.354 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/1.124, allocations: 0 / 1.354 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001162/1.124, allocations: 49.8 kB / 1.354 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/1.124, allocations: 4.625 kB / 1.354 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/1.124, allocations: 3.969 kB / 1.354 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/1.124, allocations: 0 / 1.354 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.265e-05/1.124, allocations: 11.83 kB / 1.354 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/1.124, allocations: 0.6562 kB / 1.354 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.196e-05/1.124, allocations: 17.7 kB / 1.354 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/1.124, allocations: 0.6094 kB / 1.354 GB, free: 32.45 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.362e-05/1.125, allocations: 104.9 kB / 1.354 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/1.125, allocations: 0.5625 kB / 1.354 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001693/1.125, allocations: 62.77 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/1.125, allocations: 0.7969 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/1.125, allocations: 0 / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/1.125, allocations: 4.031 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/1.125, allocations: 135.3 kB / 1.355 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/1.125, allocations: 5.078 kB / 1.355 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/1.125, allocations: 14.77 kB / 1.355 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/1.125, allocations: 4.594 kB / 1.355 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/1.125, allocations: 0 / 1.355 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/1.125, allocations: 0 / 1.355 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.125, allocations: 0.6562 kB / 1.355 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/1.125, allocations: 152.9 kB / 1.355 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.121e-05/1.125, allocations: 89.61 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/1.125, allocations: 3.875 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.347e-05/1.125, allocations: 7.062 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.869e-05/1.125, allocations: 1.547 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/1.125, allocations: 3.812 kB / 1.355 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.634e-05/1.125, allocations: 87.69 kB / 1.355 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.125, allocations: 0 / 1.355 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002182/1.126, allocations: 3.844 kB / 1.355 GB, free: 31.81 MB / 0.8386 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 () * 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 (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.0001452/1.126, allocations: 100.1 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.224e-05/1.126, allocations: 11.22 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/1.126, allocations: 0 / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.985e-05/1.126, allocations: 12.22 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/1.126, allocations: 6.922 kB / 1.355 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000214/1.126, allocations: 71.28 kB / 1.355 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/1.127, allocations: 0.6773 MB / 1.356 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.558e-05/1.127, allocations: 4.469 kB / 1.356 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.743e-05/1.127, allocations: 7.438 kB / 1.356 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.127, allocations: 0 / 1.356 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of Templates: time 0.002346/1.129, allocations: 446.6 kB / 1.356 GB, free: 30.9 MB / 0.8386 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches