Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 108.5 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00229/0.00229, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.271/3.271, allocations: 0.4899 GB / 0.7915 GB, free: 33.39 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 72.7 kB / 1.149 GB, free: 26.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.353, allocations: 176.1 MB / 1.321 GB, free: 2.809 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002091/0.3551, allocations: 0.5942 MB / 1.322 GB, free: 2.215 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002916/0.3554, allocations: 47.8 kB / 1.322 GB, free: 2.168 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.3554, allocations: 0 / 1.322 GB, free: 2.168 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.857e-05/0.3554, allocations: 0 / 1.322 GB, free: 2.168 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.3554, allocations: 0 / 1.322 GB, free: 2.168 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.3557, allocations: 7.984 kB / 1.322 GB, free: 2.16 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 3.966e-05/0.3557, allocations: 7.922 kB / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.994e-05/0.3557, allocations: 11.98 kB / 1.322 GB, free: 2.141 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.106e-05/0.3558, allocations: 0 / 1.322 GB, free: 2.141 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.23e-05/0.3558, allocations: 8 kB / 1.322 GB, free: 2.133 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 9.007e-06/0.3558, allocations: 0 / 1.322 GB, free: 2.133 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.3559, allocations: 19.98 kB / 1.322 GB, free: 2.113 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.3559, allocations: 0 / 1.322 GB, free: 2.113 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.564e-05/0.3559, allocations: 0 / 1.322 GB, free: 2.113 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 8.641e-05/0.356, allocations: 15.97 kB / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.356, allocations: 7.984 kB / 1.322 GB, free: 2.09 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.312e-06/0.356, allocations: 3.938 kB / 1.322 GB, free: 2.086 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.356, allocations: 0 / 1.322 GB, free: 2.086 MB / 1.014 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.0003354/0.3564, allocations: 311.5 kB / 1.322 GB, free: 1.73 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3564, allocations: 19.92 kB / 1.322 GB, free: 1.711 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002438/0.3566, allocations: 16.91 kB / 1.322 GB, free: 1.695 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.3568, allocations: 164.4 kB / 1.322 GB, free: 1.496 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.3568, allocations: 384 / 1.322 GB, free: 1.496 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.3568, allocations: 4.375 kB / 1.322 GB, free: 1.492 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.357, allocations: 34.25 kB / 1.323 GB, free: 1.453 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.357, allocations: 192 / 1.323 GB, free: 1.453 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.357, allocations: 3.938 kB / 1.323 GB, free: 1.449 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.357, allocations: 4 kB / 1.323 GB, free: 1.445 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.3571, allocations: 11.92 kB / 1.323 GB, free: 1.434 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002243/0.3573, allocations: 149.7 kB / 1.323 GB, free: 1.238 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.3575, allocations: 22.59 kB / 1.323 GB, free: 1.207 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.866e-05/0.3575, allocations: 4.859 kB / 1.323 GB, free: 1.199 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.3576, allocations: 8.062 kB / 1.323 GB, free: 1.191 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.3576, allocations: 34.97 kB / 1.323 GB, free: 1.148 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 1.823e-06/0.3576, allocations: 0 / 1.323 GB, free: 1.148 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0003322/0.3579, allocations: 53.55 kB / 1.323 GB, free: 1.09 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.519e-05/0.358, allocations: 51.41 kB / 1.323 GB, free: 1.027 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.222e-05/0.3581, allocations: 89.86 kB / 1.323 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.3581, allocations: 25.7 kB / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.736e-05/0.3582, allocations: 84.27 kB / 1.323 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.3582, allocations: 3.953 kB / 1.323 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.348e-05/0.3583, allocations: 17.7 kB / 1.323 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001846/0.3585, allocations: 314.8 kB / 1.323 GB, free: 480 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.545e-05/0.3585, allocations: 4 kB / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.334e-05/0.3586, allocations: 3.984 kB / 1.323 GB, free: 472 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.3587, allocations: 20.91 kB / 1.323 GB, free: 448 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3587, allocations: 0 / 1.323 GB, free: 448 kB / 1.014 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000146/0.3588, allocations: 41.62 kB / 1.323 GB, free: 400 kB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3588, allocations: 8 kB / 1.323 GB, free: 392 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3588, allocations: 3.984 kB / 1.323 GB, free: 388 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.3589, allocations: 3.938 kB / 1.323 GB, free: 384 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.15e-05/0.359, allocations: 11.92 kB / 1.323 GB, free: 372 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.359, allocations: 0 / 1.323 GB, free: 372 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.402e-05/0.359, allocations: 4.031 kB / 1.323 GB, free: 368 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.359, allocations: 0 / 1.323 GB, free: 368 kB / 1.014 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 0.000129/0.3591, allocations: 113.8 kB / 1.324 GB, free: 244 kB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-06/0.3591, allocations: 0 / 1.324 GB, free: 244 kB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.3592, allocations: 7.062 kB / 1.324 GB, free: 236 kB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3592, allocations: 0 / 1.324 GB, free: 236 kB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.3592, allocations: 4 kB / 1.324 GB, free: 232 kB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3592, allocations: 0 / 1.324 GB, free: 232 kB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.3593, allocations: 157.6 kB / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3593, allocations: 0 / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.197e-05/0.3594, allocations: 0 / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.3594, allocations: 7.984 kB / 1.324 GB, free: 16 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.3594, allocations: 3.938 kB / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3594, allocations: 0 / 1.324 GB, free: 12 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3594, allocations: 3.938 kB / 1.324 GB, free: 8 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.3596, allocations: 65.12 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.3597, allocations: 81.11 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.3597, allocations: 7.922 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.688e-05/0.3597, allocations: 7.984 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.511e-05/0.3598, allocations: 0 / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.3598, allocations: 0 / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.452e-05/0.3598, allocations: 79.28 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3598, allocations: 0 / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001898/0.36, allocations: 0 / 1.324 GB, free: 15.73 MB / 1.029 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.0001741/0.3602, allocations: 103.2 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001769/0.3603, allocations: 15.92 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3604, allocations: 4 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.819e-05/0.3604, allocations: 7.984 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.3605, allocations: 6.344 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003546/0.3609, allocations: 85.05 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.3614, allocations: 0.6728 MB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.178e-05/0.3615, allocations: 4 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.3615, allocations: 7.438 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3615, allocations: 0 / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of Templates: time 0.002795/0.3643, allocations: 231.3 kB / 1.325 GB, free: 14.55 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.775305733084679]