Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.484/2.484, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001052/0.001052, allocations: 185.9 kB / 0.4902 GB, free: 2.223 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.654/1.654, allocations: 223.2 MB / 0.7992 GB, free: 15.68 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.001033/0.001033, allocations: 100.2 kB / 0.9396 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003976/0.0003976, allocations: 10.31 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.34, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/0.5385, allocations: 149.3 MB / 1.375 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.5388, allocations: 71.95 kB / 1.375 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.001446/0.5403, allocations: 0.5437 MB / 1.376 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5403, allocations: 0 / 1.376 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.5403, allocations: 0 / 1.376 GB, free: 15.33 MB / 0.8855 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.0002289/0.5405, allocations: 307.4 kB / 1.376 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.5406, allocations: 12.62 kB / 1.376 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002051/0.5408, allocations: 19.91 kB / 1.376 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.446e-05/0.5409, allocations: 163 kB / 1.376 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.5409, allocations: 4 kB / 1.376 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.541, allocations: 7.922 kB / 1.376 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001452/0.5411, allocations: 33.69 kB / 1.376 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.5411, allocations: 4 kB / 1.376 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.5411, allocations: 0 / 1.376 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.5411, allocations: 0 / 1.376 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.724e-05/0.5412, allocations: 15.98 kB / 1.376 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.5414, allocations: 149.6 kB / 1.376 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 7.332e-05/0.5415, allocations: 18.61 kB / 1.376 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.5415, allocations: 3.938 kB / 1.376 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.5416, allocations: 40.42 kB / 1.376 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.5416, allocations: 0 / 1.376 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0002354/0.5418, allocations: 45.75 kB / 1.376 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.5419, allocations: 51.41 kB / 1.376 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.847e-05/0.5419, allocations: 85 kB / 1.377 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.5419, allocations: 25.7 kB / 1.377 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.116e-05/0.542, allocations: 88.27 kB / 1.377 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.542, allocations: 3.984 kB / 1.377 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.542, allocations: 0 / 1.377 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.5421, allocations: 310.8 kB / 1.377 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.481e-05/0.5422, allocations: 4 kB / 1.377 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.835e-05/0.5422, allocations: 11.92 kB / 1.377 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.565e-05/0.5423, allocations: 7.938 kB / 1.377 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.5423, allocations: 8.016 kB / 1.377 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001126/0.5424, allocations: 41.69 kB / 1.377 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.5424, allocations: 4 kB / 1.377 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.5424, allocations: 3.984 kB / 1.377 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.5425, allocations: 0 / 1.377 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.091e-05/0.5425, allocations: 4 kB / 1.377 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.5426, allocations: 0 / 1.377 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.195e-05/0.5426, allocations: 0 / 1.377 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.5426, allocations: 4 kB / 1.377 GB, free: 13.68 MB / 0.8855 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 6.257e-05/0.5427, allocations: 113.9 kB / 1.377 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.5427, allocations: 7.859 kB / 1.377 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.5427, allocations: 7.062 kB / 1.377 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.5427, allocations: 0 / 1.377 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.5427, allocations: 0 / 1.377 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.5428, allocations: 4 kB / 1.377 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.62e-05/0.5429, allocations: 145.7 kB / 1.377 GB, free: 13.35 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.5429, allocations: 3.984 kB / 1.377 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.459e-05/0.5429, allocations: 15.89 kB / 1.377 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.5429, allocations: 0 / 1.377 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.5429, allocations: 0 / 1.377 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5429, allocations: 0 / 1.377 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.5429, allocations: 0 / 1.377 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.5431, allocations: 65.11 kB / 1.377 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.389e-05/0.5431, allocations: 77.11 kB / 1.377 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.5432, allocations: 11.98 kB / 1.377 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.939e-05/0.5432, allocations: 0 / 1.377 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.771e-05/0.5432, allocations: 4 kB / 1.377 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.5432, allocations: 0 / 1.377 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 2.851e-05/0.5433, allocations: 75.28 kB / 1.378 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5433, allocations: 0 / 1.378 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001592/0.5434, allocations: 0 / 1.378 GB, free: 13.06 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 (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.0001605/0.5436, allocations: 100 kB / 1.378 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001321/0.5438, allocations: 19.92 kB / 1.378 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5438, allocations: 0 / 1.378 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 3.95e-05/0.5438, allocations: 4 kB / 1.378 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.693e-05/0.5439, allocations: 9.906 kB / 1.378 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002452/0.5442, allocations: 86.69 kB / 1.378 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.5444, allocations: 0.681 MB / 1.378 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.067e-05/0.5445, allocations: 8 kB / 1.378 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.432e-05/0.5445, allocations: 7.438 kB / 1.378 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of SimCode: time 7.61e-07/0.5445, allocations: 3.938 kB / 1.378 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of Templates: time 0.001846/0.5464, allocations: 217.2 kB / 1.379 GB, free: 11.88 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches