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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009472/0.0009473, allocations: 98.88 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 182.7 kB / 16.92 MB, free: 6.914 MB / 14.72 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: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.74/2.74, allocations: 462.7 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003939/0.0003942, allocations: 11.22 kB / 0.9034 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.34, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0007863/0.3409, allocations: 322.9 kB / 1.06 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002836/0.3412, allocations: 51.73 kB / 1.06 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.11e-05/0.3412, allocations: 0 / 1.06 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.305e-05/0.3412, allocations: 4 kB / 1.06 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.421e-06/0.3412, allocations: 0 / 1.06 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.3414, allocations: 15.98 kB / 1.06 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.519e-05/0.3415, allocations: 7.938 kB / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.19e-05/0.3415, allocations: 0 / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.375e-05/0.3416, allocations: 0 / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.539e-05/0.3416, allocations: 0 / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.929e-06/0.3416, allocations: 0 / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.9e-05/0.3417, allocations: 23.97 kB / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.3417, allocations: 4 kB / 1.06 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.174e-05/0.3418, allocations: 33.69 kB / 1.06 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 5.821e-05/0.3418, allocations: 4 kB / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3419, allocations: 7.984 kB / 1.06 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3419, allocations: 0 / 1.06 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.3419, allocations: 0 / 1.06 GB, free: 4.488 MB / 0.8106 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.0002599/0.3421, allocations: 307.5 kB / 1.06 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.3422, allocations: 16.03 kB / 1.06 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002487/0.3424, allocations: 20.84 kB / 1.06 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.875e-05/0.3425, allocations: 164.4 kB / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.3426, allocations: 384 / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.3426, allocations: 384 / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.3427, allocations: 46.17 kB / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.3427, allocations: 192 / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3428, allocations: 3.938 kB / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3428, allocations: 0 / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.8e-05/0.3429, allocations: 11.98 kB / 1.06 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.343, allocations: 145.7 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.472e-05/0.3431, allocations: 26.53 kB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.596e-05/0.3432, allocations: 12.92 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.3432, allocations: 0 / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.3432, allocations: 38.56 kB / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.3432, allocations: 0 / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002263/0.3434, allocations: 53.61 kB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.3435, allocations: 55.34 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.552e-05/0.3435, allocations: 89.86 kB / 1.061 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.3436, allocations: 29.7 kB / 1.061 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.844e-05/0.3436, allocations: 80.14 kB / 1.061 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.3436, allocations: 0 / 1.061 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.3437, allocations: 13.72 kB / 1.061 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3438, allocations: 319 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.491e-05/0.3438, allocations: 4 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.747e-05/0.3439, allocations: 4 kB / 1.061 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.564e-05/0.344, allocations: 12.84 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.344, allocations: 0 / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001238/0.3441, allocations: 49.73 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3441, allocations: 7.938 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3441, allocations: 0 / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3442, allocations: 7.875 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.591e-05/0.3442, allocations: 4 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.3442, allocations: 0 / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.382e-05/0.3443, allocations: 3.984 kB / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/0.3443, allocations: 4 kB / 1.061 GB, free: 2.762 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.187e-05/0.3444, allocations: 113.9 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.3444, allocations: 3.984 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.582e-05/0.3444, allocations: 7.062 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3444, allocations: 0 / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3444, allocations: 0 / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3444, allocations: 7.938 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.473e-05/0.3445, allocations: 145.7 kB / 1.062 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3446, allocations: 0 / 1.062 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.956e-05/0.3446, allocations: 4 kB / 1.062 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.3446, allocations: 0 / 1.062 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.3446, allocations: 7.938 kB / 1.062 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.3446, allocations: 0 / 1.062 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3446, allocations: 3.984 kB / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001508/0.3448, allocations: 73.05 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.3448, allocations: 77.11 kB / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.3448, allocations: 3.938 kB / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.222e-05/0.3449, allocations: 4.031 kB / 1.062 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.3449, allocations: 3.984 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.3449, allocations: 4 kB / 1.062 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.897e-05/0.345, allocations: 75.28 kB / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.345, allocations: 0 / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001708/0.3451, allocations: 0 / 1.062 GB, free: 2.145 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000118/0.3453, allocations: 95.25 kB / 1.062 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001313/0.3454, allocations: 19.98 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.3454, allocations: 0 / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.474e-05/0.3455, allocations: 7.984 kB / 1.062 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.3456, allocations: 4.281 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002529/0.3458, allocations: 112.3 kB / 1.062 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.3461, allocations: 0.6692 MB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.379e-05/0.3461, allocations: 7.438 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of SimCode: time 1.924e-06/0.3461, allocations: 4.125 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of Templates: time 0.001639/0.3478, allocations: 397.8 kB / 1.063 GB, free: 0.7695 MB / 0.8106 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches