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.001409/0.001409, allocations: 118.2 kB / 17.13 MB, free: 5.945 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.001542/0.001542, allocations: 209.5 kB / 20.09 MB, free: 2.996 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.515/1.515, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.966/2.966, allocations: 0.49 GB / 0.7923 GB, free: 1.258 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.002015/0.002015, allocations: 71.88 kB / 1.15 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021/1.023, allocations: 176.1 MB / 1.322 GB, free: 25.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001643/1.025, allocations: 0.5902 MB / 1.323 GB, free: 24.68 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002433/1.025, allocations: 56.59 kB / 1.323 GB, free: 24.65 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.809e-05/1.025, allocations: 0 / 1.323 GB, free: 24.65 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/1.025, allocations: 0 / 1.323 GB, free: 24.65 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.603e-06/1.025, allocations: 0 / 1.323 GB, free: 24.65 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000229/1.025, allocations: 6.906 kB / 1.323 GB, free: 24.65 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 4.882e-05/1.025, allocations: 7.078 kB / 1.323 GB, free: 24.64 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.015e-05/1.025, allocations: 3.281 kB / 1.323 GB, free: 24.64 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 1.497e-05/1.025, allocations: 0 / 1.323 GB, free: 24.64 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 2.265e-05/1.025, allocations: 6.875 kB / 1.323 GB, free: 24.64 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.656e-06/1.025, allocations: 3.938 kB / 1.323 GB, free: 24.64 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/1.026, allocations: 20.03 kB / 1.323 GB, free: 24.63 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.147e-05/1.026, allocations: 3.031 kB / 1.323 GB, free: 24.63 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.584e-05/1.026, allocations: 0 / 1.323 GB, free: 24.63 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 8.111e-05/1.026, allocations: 20.81 kB / 1.323 GB, free: 24.62 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/1.026, allocations: 0 / 1.323 GB, free: 24.62 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.432e-06/1.026, allocations: 0 / 1.323 GB, free: 24.62 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.548e-06/1.026, allocations: 0 / 1.323 GB, free: 24.62 MB / 1.061 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.0002368/1.026, allocations: 317.6 kB / 1.323 GB, free: 24.27 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/1.026, allocations: 17.14 kB / 1.323 GB, free: 24.26 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000254/1.026, allocations: 16.67 kB / 1.323 GB, free: 24.26 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.248e-05/1.026, allocations: 166.9 kB / 1.323 GB, free: 24.07 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/1.026, allocations: 384 / 1.323 GB, free: 24.07 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/1.026, allocations: 384 / 1.323 GB, free: 24.07 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/1.026, allocations: 32.55 kB / 1.323 GB, free: 24.04 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/1.026, allocations: 192 / 1.323 GB, free: 24.04 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/1.026, allocations: 15.09 kB / 1.323 GB, free: 24.02 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/1.026, allocations: 0 / 1.323 GB, free: 24.02 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/1.027, allocations: 10.56 kB / 1.323 GB, free: 24.02 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/1.027, allocations: 151.9 kB / 1.323 GB, free: 23.83 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.122e-05/1.027, allocations: 17.52 kB / 1.323 GB, free: 23.8 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.034e-05/1.027, allocations: 11.09 kB / 1.323 GB, free: 23.8 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/1.027, allocations: 7 kB / 1.323 GB, free: 23.79 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/1.027, allocations: 30.56 kB / 1.323 GB, free: 23.75 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/1.027, allocations: 0 / 1.323 GB, free: 23.75 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0002246/1.027, allocations: 56.67 kB / 1.324 GB, free: 23.71 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.102e-05/1.027, allocations: 51.41 kB / 1.324 GB, free: 23.65 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.132e-05/1.027, allocations: 89.86 kB / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.145e-06/1.027, allocations: 29.83 kB / 1.324 GB, free: 23.52 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.286e-05/1.027, allocations: 80.14 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/1.027, allocations: 3.953 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/1.027, allocations: 16.03 kB / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.037e-05/1.027, allocations: 314.8 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.328e-05/1.027, allocations: 3 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.599e-05/1.027, allocations: 5.812 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.917e-05/1.027, allocations: 19.95 kB / 1.324 GB, free: 23.09 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.027, allocations: 0 / 1.324 GB, free: 23.09 MB / 1.061 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001096/1.028, allocations: 45.72 kB / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/1.028, allocations: 8.406 kB / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/1.028, allocations: 1.812 kB / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/1.028, allocations: 3.938 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.403e-05/1.028, allocations: 3.344 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/1.028, allocations: 4.031 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.295e-05/1.028, allocations: 9.984 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/1.028, allocations: 0 / 1.324 GB, free: 23.04 MB / 1.061 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 4.601e-05/1.028, allocations: 109.8 kB / 1.324 GB, free: 22.92 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-06/1.028, allocations: 6.891 kB / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/1.028, allocations: 7.062 kB / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/1.028, allocations: 0 / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.028, allocations: 0 / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/1.028, allocations: 0 / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.392e-05/1.028, allocations: 151.6 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/1.028, allocations: 0 / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.844e-05/1.028, allocations: 6.078 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/1.028, allocations: 0 / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-06/1.028, allocations: 3.938 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/1.028, allocations: 0 / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/1.028, allocations: 2.938 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001225/1.028, allocations: 75.92 kB / 1.325 GB, free: 22.63 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/1.028, allocations: 79.78 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/1.028, allocations: 6.844 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.958e-05/1.028, allocations: 0 / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.339e-05/1.028, allocations: 0 / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/1.028, allocations: 6.141 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.324e-05/1.028, allocations: 75.28 kB / 1.325 GB, free: 22.46 MB / 1.061 GB Notification: Performance of sort global known variables: time 4e-08/1.028, allocations: 0 / 1.325 GB, free: 22.46 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001692/1.028, allocations: 0 / 1.325 GB, free: 22.46 MB / 1.061 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.0001011/1.028, allocations: 102.7 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001427/1.028, allocations: 11.41 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/1.028, allocations: 0 / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 4.231e-05/1.029, allocations: 14.06 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/1.029, allocations: 2.75 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002338/1.029, allocations: 114 kB / 1.325 GB, free: 22.23 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.523e-05/1.029, allocations: 0.6751 MB / 1.326 GB, free: 21.54 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.519e-05/1.029, allocations: 11.38 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/1.029, allocations: 0 / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of Templates: time 0.001627/1.031, allocations: 390.1 kB / 1.326 GB, free: 21.51 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.408257192000747]