Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.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.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_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_9_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.435/2.435, allocations: 390.3 MB / 405.3 MB, free: 13.53 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.001019/0.00102, allocations: 186.6 kB / 498.1 MB, free: 5.738 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.625/1.625, 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.0009571/0.0009573, allocations: 100.3 kB / 0.9346 GB, free: 7.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003832, allocations: 12.47 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3386, allocations: 142.4 MB / 1.223 GB, free: 89.59 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2091/0.5478, allocations: 148.5 MB / 1.368 GB, free: 4.891 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.5481, allocations: 79.95 kB / 1.368 GB, free: 4.812 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00149/0.5497, allocations: 0.5398 MB / 1.369 GB, free: 4.27 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.274e-06/0.5497, allocations: 0 / 1.369 GB, free: 4.27 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.5497, allocations: 4 kB / 1.369 GB, free: 4.266 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000271/0.55, allocations: 307.4 kB / 1.369 GB, free: 3.918 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.55, allocations: 16.02 kB / 1.369 GB, free: 3.902 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.5503, allocations: 15.98 kB / 1.369 GB, free: 3.887 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.5504, allocations: 167 kB / 1.369 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.5504, allocations: 0 / 1.369 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.5504, allocations: 4 kB / 1.369 GB, free: 3.68 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.5506, allocations: 37.69 kB / 1.369 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.5506, allocations: 0 / 1.369 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.5506, allocations: 0 / 1.369 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.5506, allocations: 4 kB / 1.369 GB, free: 3.633 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.631e-05/0.5507, allocations: 11.92 kB / 1.369 GB, free: 3.621 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.5509, allocations: 153.6 kB / 1.369 GB, free: 3.422 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.033e-05/0.551, allocations: 26.53 kB / 1.369 GB, free: 3.387 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.551, allocations: 4 kB / 1.369 GB, free: 3.383 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.551, allocations: 32.44 kB / 1.369 GB, free: 3.344 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.551, allocations: 0 / 1.369 GB, free: 3.344 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0002507/0.5513, allocations: 45.73 kB / 1.369 GB, free: 3.293 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.5514, allocations: 51.41 kB / 1.369 GB, free: 3.23 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.523e-05/0.5514, allocations: 85 kB / 1.369 GB, free: 3.141 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.5514, allocations: 37.7 kB / 1.369 GB, free: 3.098 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.066e-05/0.5515, allocations: 80.14 kB / 1.37 GB, free: 3.016 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.5515, allocations: 7.906 kB / 1.37 GB, free: 3.008 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-06/0.5515, allocations: 0 / 1.37 GB, free: 3.008 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.5517, allocations: 314.8 kB / 1.37 GB, free: 2.691 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.385e-05/0.5517, allocations: 3.984 kB / 1.37 GB, free: 2.688 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.714e-05/0.5517, allocations: 4 kB / 1.37 GB, free: 2.684 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.151e-05/0.5518, allocations: 12.05 kB / 1.37 GB, free: 2.672 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5518, allocations: 3.953 kB / 1.37 GB, free: 2.668 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001221/0.5519, allocations: 37.69 kB / 1.37 GB, free: 2.625 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.552, allocations: 9.094 kB / 1.37 GB, free: 2.617 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.552, allocations: 0 / 1.37 GB, free: 2.617 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.552, allocations: 0 / 1.37 GB, free: 2.617 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.235e-05/0.5521, allocations: 4 kB / 1.37 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.5521, allocations: 0 / 1.37 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.778e-05/0.5521, allocations: 8.016 kB / 1.37 GB, free: 2.605 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.5522, allocations: 0 / 1.37 GB, free: 2.605 MB / 0.8698 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 () * Number of clocked 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 0.000122/0.5523, allocations: 117.8 kB / 1.37 GB, free: 2.48 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.5523, allocations: 3.953 kB / 1.37 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.5524, allocations: 3.125 kB / 1.37 GB, free: 2.473 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.5524, allocations: 0 / 1.37 GB, free: 2.473 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.5524, allocations: 0 / 1.37 GB, free: 2.473 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.5524, allocations: 0 / 1.37 GB, free: 2.473 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.5525, allocations: 145.7 kB / 1.37 GB, free: 2.281 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5525, allocations: 8 kB / 1.37 GB, free: 2.273 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.346e-05/0.5526, allocations: 3.953 kB / 1.37 GB, free: 2.27 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.5526, allocations: 0 / 1.37 GB, free: 2.27 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.5526, allocations: 7.938 kB / 1.37 GB, free: 2.262 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.5526, allocations: 3.984 kB / 1.37 GB, free: 2.258 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5526, allocations: 0 / 1.37 GB, free: 2.258 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001453/0.5528, allocations: 65.12 kB / 1.37 GB, free: 2.176 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-05/0.5529, allocations: 77.11 kB / 1.37 GB, free: 2.082 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.5529, allocations: 7.953 kB / 1.37 GB, free: 2.074 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.202e-05/0.5529, allocations: 3.984 kB / 1.37 GB, free: 2.07 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/0.5529, allocations: 0 / 1.37 GB, free: 2.07 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.553, allocations: 3.938 kB / 1.37 GB, free: 2.066 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.327e-05/0.553, allocations: 75.28 kB / 1.37 GB, free: 1.992 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1e-07/0.553, allocations: 0 / 1.37 GB, free: 1.992 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001651/0.5532, allocations: 4 kB / 1.37 GB, free: 1.988 MB / 0.8698 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 (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.0001789/0.5533, allocations: 103.1 kB / 1.371 GB, free: 1.879 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001374/0.5535, allocations: 11.98 kB / 1.371 GB, free: 1.867 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5535, allocations: 0 / 1.371 GB, free: 1.867 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 4.435e-05/0.5536, allocations: 15.92 kB / 1.371 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.939e-05/0.5537, allocations: 0 / 1.371 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002796/0.5539, allocations: 86.81 kB / 1.371 GB, free: 1.738 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.5543, allocations: 0.6731 MB / 1.371 GB, free: 1.039 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.085e-05/0.5543, allocations: 3.984 kB / 1.371 GB, free: 1.035 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.5544, allocations: 15.42 kB / 1.371 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of SimCode: time 1.963e-06/0.5544, allocations: 0 / 1.371 GB, free: 1.02 MB / 0.8698 GB Notification: Performance of Templates: time 0.00229/0.5567, allocations: 212.4 kB / 1.372 GB, free: 0.8125 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches