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.029/2.029, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.0009948/0.0009948, allocations: 188.7 kB / 487.4 MB, free: 5.051 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.341/1.341, allocations: 221.5 MB / 0.7824 GB, free: 0.9805 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.0008957/0.0008958, allocations: 105.4 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.235e-05/2.237e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2631, allocations: 142.3 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8324/1.096, allocations: 147.8 MB / 1.35 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/1.096, allocations: 75.14 kB / 1.35 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001686/1.098, allocations: 0.538 MB / 1.351 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.172e-06/1.098, allocations: 0 / 1.351 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.529e-06/1.098, allocations: 0.5312 kB / 1.351 GB, free: 34.03 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0001781/1.098, allocations: 311.8 kB / 1.351 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/1.098, allocations: 8.453 kB / 1.351 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/1.098, allocations: 14.69 kB / 1.351 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.703e-05/1.098, allocations: 171.8 kB / 1.351 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/1.098, allocations: 3.844 kB / 1.351 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-06/1.098, allocations: 0 / 1.351 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.579e-05/1.098, allocations: 4.641 kB / 1.351 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.654e-05/1.098, allocations: 35.16 kB / 1.351 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/1.098, allocations: 4.75 kB / 1.351 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/1.098, allocations: 0 / 1.351 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/1.098, allocations: 0 / 1.351 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.409e-05/1.098, allocations: 127.8 kB / 1.352 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 2.89e-05/1.098, allocations: 19.22 kB / 1.352 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.501e-05/1.098, allocations: 8.141 kB / 1.352 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/1.098, allocations: 0.5156 kB / 1.352 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/1.098, allocations: 38.98 kB / 1.352 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/1.098, allocations: 3.938 kB / 1.352 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001018/1.099, allocations: 38.78 kB / 1.352 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.564e-05/1.099, allocations: 51.41 kB / 1.352 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.989e-05/1.099, allocations: 85.7 kB / 1.352 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.204e-06/1.099, allocations: 25.7 kB / 1.352 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.266e-05/1.099, allocations: 80.14 kB / 1.352 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/1.099, allocations: 0.625 kB / 1.352 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/1.099, allocations: 4.031 kB / 1.352 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001029/1.099, allocations: 311.5 kB / 1.352 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/1.099, allocations: 4.641 kB / 1.352 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-06/1.099, allocations: 0 / 1.352 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.455e-05/1.099, allocations: 2.438 kB / 1.352 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.099, allocations: 3.844 kB / 1.352 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.579e-05/1.099, allocations: 39.16 kB / 1.352 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/1.099, allocations: 3.875 kB / 1.352 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/1.099, allocations: 0.8906 kB / 1.352 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/1.099, allocations: 4 kB / 1.352 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.734e-05/1.099, allocations: 8.938 kB / 1.352 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/1.099, allocations: 1.688 kB / 1.352 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.165e-05/1.099, allocations: 4.594 kB / 1.352 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/1.099, allocations: 0.7031 kB / 1.352 GB, free: 32.55 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 (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 5.739e-05/1.099, allocations: 102 kB / 1.352 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/1.099, allocations: 8.609 kB / 1.352 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/1.099, allocations: 7.75 kB / 1.352 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/1.099, allocations: 3.625 kB / 1.352 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.099, allocations: 0.5625 kB / 1.352 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/1.099, allocations: 1.312 kB / 1.352 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.636e-05/1.099, allocations: 124.3 kB / 1.352 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.099, allocations: 0 / 1.352 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-05/1.099, allocations: 5.469 kB / 1.352 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/1.099, allocations: 0 / 1.352 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/1.099, allocations: 2.859 kB / 1.352 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/1.099, allocations: 3.953 kB / 1.352 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.099, allocations: 0.7969 kB / 1.352 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.675e-05/1.099, allocations: 66.56 kB / 1.353 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.668e-05/1.099, allocations: 77.62 kB / 1.353 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/1.099, allocations: 4.547 kB / 1.353 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.298e-05/1.099, allocations: 5.188 kB / 1.353 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/1.099, allocations: 7.891 kB / 1.353 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/1.1, allocations: 0.7031 kB / 1.353 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.701e-05/1.1, allocations: 79.31 kB / 1.353 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1e-07/1.1, allocations: 0 / 1.353 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001683/1.1, allocations: 7.781 kB / 1.353 GB, free: 32.01 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 (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.0001034/1.1, allocations: 95.73 kB / 1.353 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 5.297e-05/1.1, allocations: 4.578 kB / 1.353 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.1, allocations: 0 / 1.353 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.775e-06/1.1, allocations: 4.375 kB / 1.353 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.315e-05/1.1, allocations: 0 / 1.353 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001532/1.1, allocations: 47.2 kB / 1.353 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/1.1, allocations: 0.6786 MB / 1.354 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.664e-05/1.1, allocations: 0 / 1.354 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.096e-05/1.1, allocations: 12.05 kB / 1.354 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.1, allocations: 0 / 1.354 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of Templates: time 0.001591/1.102, allocations: 210.5 kB / 1.354 GB, free: 31.11 MB / 0.8386 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