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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 111.7 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 191.7 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 245.7 MB, free: 4.234 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.916/2.916, allocations: 489.3 MB / 0.7687 GB, free: 3.805 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=2500,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=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002566/0.002567, allocations: 71.89 kB / 1.103 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9139/0.9165, allocations: 163.8 MB / 1.263 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001584/0.9181, allocations: 0.5963 MB / 1.263 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002316/0.9184, allocations: 47.31 kB / 1.263 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.615e-05/0.9184, allocations: 0.6875 kB / 1.263 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.9184, allocations: 0 / 1.263 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.372e-06/0.9184, allocations: 0 / 1.263 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.9187, allocations: 23.11 kB / 1.263 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 3.735e-05/0.9187, allocations: 1.531 kB / 1.263 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.715e-05/0.9188, allocations: 2.656 kB / 1.263 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.511e-05/0.9188, allocations: 1.391 kB / 1.263 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.203e-05/0.9188, allocations: 0.7188 kB / 1.263 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.9188, allocations: 0 / 1.263 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.9189, allocations: 24.45 kB / 1.263 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.919, allocations: 1.422 kB / 1.263 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.446e-05/0.919, allocations: 1.391 kB / 1.263 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.047e-05/0.9191, allocations: 19.38 kB / 1.263 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.9191, allocations: 0.75 kB / 1.263 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.823e-06/0.9191, allocations: 2.078 kB / 1.263 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.9191, allocations: 0.7812 kB / 1.263 GB, free: 7.598 MB / 0.9981 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.0002373/0.9193, allocations: 320.5 kB / 1.264 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.9194, allocations: 9.188 kB / 1.264 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.9196, allocations: 23.27 kB / 1.264 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.836e-05/0.9197, allocations: 160.9 kB / 1.264 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.9197, allocations: 1.781 kB / 1.264 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-06/0.9197, allocations: 1 kB / 1.264 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.9198, allocations: 35.2 kB / 1.264 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.9199, allocations: 192 / 1.264 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.9199, allocations: 3.938 kB / 1.264 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.9199, allocations: 0.9062 kB / 1.264 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.722e-05/0.92, allocations: 14.23 kB / 1.264 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.225e-05/0.9201, allocations: 148.6 kB / 1.264 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.807e-05/0.9201, allocations: 24.53 kB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.722e-05/0.9202, allocations: 9.688 kB / 1.264 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.9202, allocations: 0.5156 kB / 1.264 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.654e-05/0.9202, allocations: 35.98 kB / 1.264 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.9202, allocations: 4.875 kB / 1.264 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0002265/0.9205, allocations: 47.47 kB / 1.264 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.9205, allocations: 55.34 kB / 1.264 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.602e-05/0.9205, allocations: 95.27 kB / 1.264 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.683e-06/0.9205, allocations: 25.7 kB / 1.264 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 1.02e-05/0.9205, allocations: 84.98 kB / 1.264 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.9206, allocations: 4.875 kB / 1.264 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/0.9206, allocations: 12.12 kB / 1.264 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.252e-05/0.9207, allocations: 312.3 kB / 1.265 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.883e-05/0.9207, allocations: 5.219 kB / 1.265 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.982e-05/0.9208, allocations: 5.312 kB / 1.265 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.049e-05/0.9209, allocations: 23.09 kB / 1.265 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.9209, allocations: 0.875 kB / 1.265 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001115/0.921, allocations: 39.28 kB / 1.265 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.921, allocations: 9.984 kB / 1.265 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.921, allocations: 3.984 kB / 1.265 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.921, allocations: 4.719 kB / 1.265 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.424e-05/0.9211, allocations: 4.875 kB / 1.265 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.9211, allocations: 0.6562 kB / 1.265 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.21e-05/0.9211, allocations: 6.484 kB / 1.265 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.9212, allocations: 4.828 kB / 1.265 GB, free: 6.012 MB / 0.9981 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.033e-05/0.9212, allocations: 108.4 kB / 1.265 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-06/0.9212, allocations: 0 / 1.265 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.9212, allocations: 8.625 kB / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.9213, allocations: 0.875 kB / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.9213, allocations: 0 / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.9213, allocations: 1.578 kB / 1.265 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.81e-05/0.9213, allocations: 148.7 kB / 1.265 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.9213, allocations: 4 kB / 1.265 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.091e-05/0.9214, allocations: 5.203 kB / 1.265 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.9214, allocations: 0 / 1.265 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.9214, allocations: 5.359 kB / 1.265 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.9214, allocations: 0.6875 kB / 1.265 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.9214, allocations: 0 / 1.265 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.9215, allocations: 68.73 kB / 1.265 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.592e-05/0.9216, allocations: 89.14 kB / 1.265 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.9216, allocations: 9.344 kB / 1.265 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.14e-05/0.9216, allocations: 2.766 kB / 1.265 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-06/0.9216, allocations: 0.7812 kB / 1.265 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.9216, allocations: 1.359 kB / 1.265 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.109e-05/0.9216, allocations: 75.28 kB / 1.265 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.9217, allocations: 0 / 1.265 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001691/0.9218, allocations: 1.719 kB / 1.265 GB, free: 5.441 MB / 0.9981 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.0001019/0.9219, allocations: 101.6 kB / 1.265 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001519/0.9221, allocations: 12.86 kB / 1.265 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.9221, allocations: 0 / 1.265 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.549e-05/0.9222, allocations: 5.844 kB / 1.265 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.9223, allocations: 9.984 kB / 1.265 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002186/0.9225, allocations: 115.6 kB / 1.266 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.771e-05/0.9226, allocations: 0.6712 MB / 1.266 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.401e-05/0.9226, allocations: 9.422 kB / 1.266 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of SimCode: time 2.21e-07/0.9226, allocations: 0 / 1.266 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of Templates: time 0.00177/0.9244, allocations: 390.8 kB / 1.267 GB, free: 4.488 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.823528374778107]