Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.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.001699/0.001699, allocations: 116.3 kB / 17.13 MB, free: 6.027 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.002066/0.002066, allocations: 208 kB / 20.1 MB, free: 3.074 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.482/1.482, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.976/2.976, allocations: 0.49 GB / 0.7923 GB, free: 1.262 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.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker") translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker") [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.002197/0.002197, allocations: 63.91 kB / 1.15 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9573/0.9595, allocations: 176.1 MB / 1.322 GB, free: 24.98 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002316/0.9618, allocations: 1.568 MB / 1.323 GB, free: 23.89 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009022/0.9627, allocations: 0.6505 MB / 1.324 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.33e-05/0.9628, allocations: 6.875 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.941e-05/0.9629, allocations: 6.938 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.944e-05/0.9629, allocations: 22.11 kB / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.9633, allocations: 108.6 kB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.9634, allocations: 103.2 kB / 1.324 GB, free: 23.31 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.83e-05/0.9635, allocations: 13.02 kB / 1.324 GB, free: 23.3 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.9637, allocations: 53.47 kB / 1.324 GB, free: 23.28 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.728e-05/0.9637, allocations: 47.83 kB / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.9637, allocations: 8.344 kB / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.9639, allocations: 92.09 kB / 1.325 GB, free: 23.24 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.555e-05/0.9639, allocations: 24.61 kB / 1.325 GB, free: 23.22 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.572e-05/0.964, allocations: 39.75 kB / 1.325 GB, free: 23.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.9641, allocations: 162.5 kB / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.9641, allocations: 0 / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.322e-06/0.9642, allocations: 0 / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.9642, allocations: 0 / 1.325 GB, free: 23.14 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006895/0.9648, allocations: 461.6 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.9649, allocations: 13.05 kB / 1.325 GB, free: 22.7 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002627/0.9651, allocations: 39.59 kB / 1.325 GB, free: 22.69 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.9653, allocations: 187.5 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.9653, allocations: 10.47 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.9654, allocations: 14.17 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.9656, allocations: 108.8 kB / 1.326 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.9656, allocations: 0 / 1.326 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.9657, allocations: 0 / 1.326 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.9657, allocations: 5.969 kB / 1.326 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.966, allocations: 91.67 kB / 1.326 GB, free: 22.39 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005747/0.9666, allocations: 354.2 kB / 1.326 GB, free: 22.09 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.9669, allocations: 89.7 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.967, allocations: 58.14 kB / 1.326 GB, free: 22.03 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.9671, allocations: 0 / 1.326 GB, free: 22.03 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.9673, allocations: 120 kB / 1.326 GB, free: 21.96 MB / 1.061 GB Notification: Performance of pre-optimization done (n=9): time 1.462e-06/0.9673, allocations: 4 kB / 1.326 GB, free: 21.96 MB / 1.061 GB Notification: Performance of matching and sorting (n=9): time 0.0006196/0.9679, allocations: 206.4 kB / 1.326 GB, free: 21.89 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.968, allocations: 55.34 kB / 1.326 GB, free: 21.82 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.994e-05/0.9681, allocations: 148.8 kB / 1.327 GB, free: 21.71 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.9681, allocations: 32.48 kB / 1.327 GB, free: 21.67 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.33e-05/0.9681, allocations: 102.1 kB / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.9681, allocations: 32.64 kB / 1.327 GB, free: 21.55 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.782e-05/0.9682, allocations: 22.19 kB / 1.327 GB, free: 21.53 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.506e-05/0.9682, allocations: 321 kB / 1.327 GB, free: 21.21 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.9684, allocations: 58.2 kB / 1.327 GB, free: 21.2 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.9686, allocations: 58.06 kB / 1.327 GB, free: 21.19 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003687/0.969, allocations: 147.7 kB / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.969, allocations: 0 / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004786/0.9694, allocations: 206.4 kB / 1.328 GB, free: 21.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.9695, allocations: 31.61 kB / 1.328 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.9695, allocations: 4.562 kB / 1.328 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.9695, allocations: 0.5938 kB / 1.328 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.9696, allocations: 19.5 kB / 1.328 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.9696, allocations: 0.9062 kB / 1.328 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.9698, allocations: 20.72 kB / 1.328 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.9698, allocations: 6.312 kB / 1.328 GB, free: 20.98 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: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 1 * Algorithm blocks: 1 * 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 7.078e-05/0.9699, allocations: 119.9 kB / 1.328 GB, free: 20.86 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.9699, allocations: 16.88 kB / 1.328 GB, free: 20.85 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.9699, allocations: 10.25 kB / 1.328 GB, free: 20.84 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.9699, allocations: 6.922 kB / 1.328 GB, free: 20.84 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.9699, allocations: 4.562 kB / 1.328 GB, free: 20.83 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.9699, allocations: 4.719 kB / 1.328 GB, free: 20.83 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.9701, allocations: 196.9 kB / 1.328 GB, free: 20.62 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.9701, allocations: 1.125 kB / 1.328 GB, free: 20.62 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.9702, allocations: 17.64 kB / 1.328 GB, free: 20.62 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.9702, allocations: 0.625 kB / 1.328 GB, free: 20.62 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.9702, allocations: 4.719 kB / 1.328 GB, free: 20.62 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.9702, allocations: 4.406 kB / 1.328 GB, free: 20.62 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.9702, allocations: 3.938 kB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004369/0.9707, allocations: 181.6 kB / 1.328 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.683e-05/0.9707, allocations: 95.27 kB / 1.328 GB, free: 20.41 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.9707, allocations: 5.625 kB / 1.328 GB, free: 20.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.9708, allocations: 19.42 kB / 1.328 GB, free: 20.4 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.9709, allocations: 21.11 kB / 1.328 GB, free: 20.39 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.9709, allocations: 1.344 kB / 1.328 GB, free: 20.39 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.747e-05/0.971, allocations: 109.1 kB / 1.328 GB, free: 20.31 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.971, allocations: 0.625 kB / 1.328 GB, free: 20.31 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002679/0.9712, allocations: 32.66 kB / 1.328 GB, free: 20.31 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: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001578/0.9714, allocations: 123.2 kB / 1.329 GB, free: 20.21 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005508/0.9719, allocations: 182.9 kB / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.9719, allocations: 0 / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002718/0.9722, allocations: 57.08 kB / 1.329 GB, free: 20.11 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.9725, allocations: 8.438 kB / 1.329 GB, free: 20.11 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006483/0.9731, allocations: 266.3 kB / 1.329 GB, free: 19.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.9733, allocations: 0.7013 MB / 1.33 GB, free: 19.21 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.9733, allocations: 15.17 kB / 1.33 GB, free: 19.2 MB / 1.061 GB Notification: Performance of SimCode: time 3.51e-07/0.9733, allocations: 0.5938 kB / 1.33 GB, free: 19.2 MB / 1.061 GB Notification: Performance of Templates: time 0.004998/0.9783, allocations: 1.539 MB / 1.331 GB, free: 19.07 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.SignalRanker.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.890793450991623]