Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker") translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sigRan.u.1.|sigRan.u.2.|sigRan.u.3.|sigRan.y.1.|sigRan.y.2.|sigRan.y.3.",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 108 kB / 15.61 MB, free: 148 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.002768/0.002768, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.2 MB / 0.6646 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7613/0.7627, allocations: 140.3 MB / 0.9496 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.003057/0.7658, allocations: 1.548 MB / 0.9511 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009206/0.7668, allocations: 0.5775 MB / 0.9516 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.143e-05/0.7669, allocations: 1.344 kB / 0.9516 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.767, allocations: 11.92 kB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.075e-05/0.767, allocations: 19.05 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004123/0.7675, allocations: 93.59 kB / 0.9518 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.7676, allocations: 92.22 kB / 0.9518 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.7677, allocations: 22.55 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.7678, allocations: 53.05 kB / 0.9519 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.774e-05/0.7679, allocations: 41.77 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.768, allocations: 11 kB / 0.952 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.7681, allocations: 63.64 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.352e-05/0.7681, allocations: 25.59 kB / 0.9521 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.037e-05/0.7682, allocations: 40.45 kB / 0.9521 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.7684, allocations: 130.2 kB / 0.9522 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7684, allocations: 0 / 0.9522 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.115e-06/0.7685, allocations: 0 / 0.9522 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.7685, allocations: 3.938 kB / 0.9522 GB, free: 7.172 MB / 0.7169 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.0008239/0.7693, allocations: 457.6 kB / 0.9527 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.7694, allocations: 9.375 kB / 0.9527 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.7694, allocations: 9.062 kB / 0.9527 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.7696, allocations: 199.5 kB / 0.9529 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.7696, allocations: 7 kB / 0.9529 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.116e-05/0.7697, allocations: 3.25 kB / 0.9529 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.77, allocations: 105.6 kB / 0.953 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.7701, allocations: 0 / 0.953 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.7701, allocations: 7.984 kB / 0.953 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.7701, allocations: 3.875 kB / 0.953 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.7705, allocations: 89.94 kB / 0.9531 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006822/0.7712, allocations: 357.3 kB / 0.9534 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.7715, allocations: 86.42 kB / 0.9535 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.7717, allocations: 59 kB / 0.9536 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.7717, allocations: 1.438 kB / 0.9536 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.772, allocations: 126 kB / 0.9537 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.7721, allocations: 0 / 0.9537 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0006674/0.7727, allocations: 203.5 kB / 0.9539 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.7728, allocations: 60.81 kB / 0.9539 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.7729, allocations: 142.4 kB / 0.9541 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.7729, allocations: 31.55 kB / 0.9541 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.021e-05/0.773, allocations: 104.3 kB / 0.9542 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.773, allocations: 26.83 kB / 0.9542 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.773, allocations: 21.84 kB / 0.9542 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.321e-05/0.7731, allocations: 326 kB / 0.9545 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.7733, allocations: 60.14 kB / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.7735, allocations: 61.53 kB / 0.9547 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.7738, allocations: 139.2 kB / 0.9548 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.7738, allocations: 0 / 0.9548 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004228/0.7743, allocations: 208.3 kB / 0.955 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.7743, allocations: 36.92 kB / 0.955 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.7743, allocations: 4.984 kB / 0.955 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.7743, allocations: 0 / 0.955 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.7745, allocations: 16.95 kB / 0.9551 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.7745, allocations: 1.188 kB / 0.9551 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.7746, allocations: 21.14 kB / 0.9551 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.7747, allocations: 10.17 kB / 0.9551 GB, free: 4.707 MB / 0.7169 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.916e-05/0.7748, allocations: 120.5 kB / 0.9552 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.7748, allocations: 12.12 kB / 0.9552 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.308e-05/0.7748, allocations: 19.73 kB / 0.9552 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.7748, allocations: 3.594 kB / 0.9552 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.7748, allocations: 3.938 kB / 0.9552 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.7749, allocations: 0 / 0.9552 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.775, allocations: 200.8 kB / 0.9554 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.775, allocations: 4 kB / 0.9554 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.7751, allocations: 14.83 kB / 0.9554 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.7751, allocations: 1.312 kB / 0.9554 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.7751, allocations: 1.188 kB / 0.9554 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.7751, allocations: 0 / 0.9554 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.7751, allocations: 5.109 kB / 0.9555 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003879/0.7755, allocations: 188.8 kB / 0.9556 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.804e-05/0.7756, allocations: 91.97 kB / 0.9557 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.7756, allocations: 1.344 kB / 0.9557 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.7757, allocations: 12.14 kB / 0.9557 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.7758, allocations: 15.58 kB / 0.9557 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.7758, allocations: 3.984 kB / 0.9558 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.585e-05/0.7759, allocations: 104.9 kB / 0.9559 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7759, allocations: 0 / 0.9559 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002555/0.7761, allocations: 50.78 kB / 0.9559 GB, free: 3.969 MB / 0.7169 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.0001736/0.7763, allocations: 110.1 kB / 0.956 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000458/0.7768, allocations: 188.5 kB / 0.9562 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7768, allocations: 0 / 0.9562 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.777, allocations: 65.66 kB / 0.9562 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.7772, allocations: 16.42 kB / 0.9563 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005748/0.7778, allocations: 234.3 kB / 0.9565 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001663/0.778, allocations: 0.6984 MB / 0.9572 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.474e-05/0.7781, allocations: 15.09 kB / 0.9572 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.864e-05/0.7781, allocations: 16.86 kB / 0.9572 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7781, allocations: 192 / 0.9572 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of Templates: time 0.004009/0.7821, allocations: 1.404 MB / 0.9586 GB, free: 2.098 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches