Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.612/1.612, allocations: 249.5 MB / 257 MB, free: 6.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 179.2 kB / 316.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.852/1.852, allocations: 205.3 MB / 0.5671 GB, free: 15.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009078/0.0009079, allocations: 89.72 kB / 0.6714 GB, free: 4.945 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.162e-05/2.166e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2627, allocations: 106.4 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7882/1.051, allocations: 131.2 MB / 1.013 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/1.051, allocations: 79.44 kB / 1.013 GB, free: 6.543 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001534/1.053, allocations: 0.5393 MB / 1.014 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.655e-06/1.053, allocations: 0 / 1.014 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.434e-06/1.053, allocations: 0 / 1.014 GB, free: 6.031 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003241/1.053, allocations: 314.3 kB / 1.014 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/1.053, allocations: 12.09 kB / 1.014 GB, free: 5.668 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/1.053, allocations: 15.97 kB / 1.014 GB, free: 5.652 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/1.054, allocations: 167 kB / 1.014 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/1.054, allocations: 0 / 1.014 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/1.054, allocations: 0 / 1.014 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.363e-05/1.054, allocations: 0 / 1.014 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/1.054, allocations: 37.69 kB / 1.014 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/1.054, allocations: 0 / 1.014 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/1.054, allocations: 0 / 1.014 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/1.054, allocations: 0 / 1.014 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/1.054, allocations: 129.3 kB / 1.015 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.914e-05/1.054, allocations: 18.61 kB / 1.015 GB, free: 5.219 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.123e-05/1.054, allocations: 13.53 kB / 1.015 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/1.054, allocations: 0 / 1.015 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/1.054, allocations: 41.62 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/1.054, allocations: 0 / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001598/1.054, allocations: 29.7 kB / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/1.054, allocations: 54.14 kB / 1.015 GB, free: 5.059 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.122e-05/1.055, allocations: 85 kB / 1.015 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/1.055, allocations: 25.7 kB / 1.015 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/1.055, allocations: 84.08 kB / 1.015 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/1.055, allocations: 0 / 1.015 GB, free: 4.852 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-06/1.055, allocations: 4.031 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001453/1.055, allocations: 314.8 kB / 1.015 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.295e-05/1.055, allocations: 6.312 kB / 1.015 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.631e-06/1.055, allocations: 0 / 1.015 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.093e-05/1.055, allocations: 0 / 1.015 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/1.055, allocations: 3.938 kB / 1.015 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.821e-05/1.055, allocations: 37.66 kB / 1.015 GB, free: 4.48 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/1.055, allocations: 4 kB / 1.015 GB, free: 4.477 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/1.055, allocations: 0.9062 kB / 1.015 GB, free: 4.477 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/1.055, allocations: 7.984 kB / 1.015 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.655e-05/1.055, allocations: 4 kB / 1.015 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/1.055, allocations: 0 / 1.015 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.018e-05/1.055, allocations: 0 / 1.015 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/1.055, allocations: 4 kB / 1.015 GB, free: 4.461 MB / 0.6355 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 (1): * Single equations (assignments): 1 * 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 9.793e-05/1.055, allocations: 101 kB / 1.015 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.958e-06/1.055, allocations: 3.953 kB / 1.015 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/1.055, allocations: 15.69 kB / 1.015 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/1.055, allocations: 2.438 kB / 1.015 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/1.055, allocations: 3.984 kB / 1.015 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/1.055, allocations: 0 / 1.015 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.508e-05/1.055, allocations: 137.2 kB / 1.016 GB, free: 4.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/1.055, allocations: 0 / 1.016 GB, free: 4.16 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.076e-05/1.056, allocations: 7.984 kB / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/1.056, allocations: 0 / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/1.056, allocations: 0 / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/1.056, allocations: 3.953 kB / 1.016 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.056, allocations: 0 / 1.016 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.399e-05/1.056, allocations: 68.06 kB / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/1.056, allocations: 77.11 kB / 1.016 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/1.056, allocations: 0 / 1.016 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.22e-05/1.056, allocations: 0 / 1.016 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/1.056, allocations: 3.953 kB / 1.016 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/1.056, allocations: 4 kB / 1.016 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.278e-05/1.056, allocations: 75.28 kB / 1.016 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/1.056, allocations: 4.031 kB / 1.016 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001885/1.056, allocations: 0 / 1.016 GB, free: 3.887 MB / 0.6355 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 (1): * Single equations (assignments): 1 * 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.0001457/1.056, allocations: 99.23 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.089e-05/1.056, allocations: 4 kB / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.056, allocations: 0 / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.066e-05/1.056, allocations: 7.938 kB / 1.016 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001001/1.056, allocations: 3.938 kB / 1.016 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002003/1.057, allocations: 51.25 kB / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/1.057, allocations: 0.6729 MB / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.426e-05/1.057, allocations: 0 / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.261e-05/1.057, allocations: 7.438 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of SimCode: time 2.51e-07/1.057, allocations: 0 / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of Templates: time 0.001735/1.059, allocations: 211.3 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches