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.001623/0.001622, allocations: 105.6 kB / 16.27 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.467/1.467, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.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.203/2.203, allocations: 390.3 MB / 0.6653 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.00143, allocations: 61.25 kB / 0.8132 GB, free: 33.09 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2537, allocations: 140.4 MB / 0.9503 GB, free: 8.91 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.003025/0.2568, allocations: 1.544 MB / 0.9518 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001027/0.2578, allocations: 0.5765 MB / 0.9523 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.899e-05/0.2579, allocations: 0 / 0.9523 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.536e-05/0.258, allocations: 11.81 kB / 0.9523 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.195e-05/0.2581, allocations: 23.78 kB / 0.9524 GB, free: 6.734 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.2585, allocations: 91.77 kB / 0.9525 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001491/0.2587, allocations: 103.6 kB / 0.9525 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.2588, allocations: 24.19 kB / 0.9526 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.2589, allocations: 39.84 kB / 0.9526 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.359e-05/0.259, allocations: 51.83 kB / 0.9527 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.2591, allocations: 8 kB / 0.9527 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.2592, allocations: 55.91 kB / 0.9527 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.692e-05/0.2592, allocations: 19.97 kB / 0.9527 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.679e-05/0.2593, allocations: 43.72 kB / 0.9528 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.2595, allocations: 135.8 kB / 0.9529 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2596, allocations: 0 / 0.9529 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2596, allocations: 0 / 0.9529 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.2596, allocations: 0 / 0.9529 GB, free: 6.168 MB / 0.7325 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.0008196/0.2604, allocations: 464.7 kB / 0.9534 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2604, allocations: 8.031 kB / 0.9534 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.829e-05/0.2605, allocations: 8.844 kB / 0.9534 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.2607, allocations: 197.5 kB / 0.9536 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.2607, allocations: 4.375 kB / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.2608, allocations: 8.375 kB / 0.9536 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.2611, allocations: 105.9 kB / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.2611, allocations: 4 kB / 0.9537 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.2611, allocations: 4 kB / 0.9537 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/0.2611, allocations: 8 kB / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.2615, allocations: 87.91 kB / 0.9538 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.2621, allocations: 344.7 kB / 0.9541 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.2625, allocations: 98.42 kB / 0.9542 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.2627, allocations: 60.88 kB / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.2627, allocations: 4.109 kB / 0.9543 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.263, allocations: 115.2 kB / 0.9544 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.873e-06/0.263, allocations: 0 / 0.9544 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0006877/0.2637, allocations: 213.3 kB / 0.9546 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.2638, allocations: 55.39 kB / 0.9546 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.2639, allocations: 147.1 kB / 0.9548 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.2639, allocations: 29.7 kB / 0.9548 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.264, allocations: 100 kB / 0.9549 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.264, allocations: 23.66 kB / 0.9549 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.2641, allocations: 29.77 kB / 0.9549 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2642, allocations: 330.8 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.2644, allocations: 59.89 kB / 0.9553 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.2646, allocations: 55.95 kB / 0.9554 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.265, allocations: 138.5 kB / 0.9555 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.265, allocations: 4 kB / 0.9555 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004609/0.2655, allocations: 203.1 kB / 0.9557 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.2655, allocations: 29.7 kB / 0.9557 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2655, allocations: 3.938 kB / 0.9557 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2655, allocations: 0 / 0.9557 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.2657, allocations: 23.97 kB / 0.9557 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.2657, allocations: 0 / 0.9557 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.2659, allocations: 23.83 kB / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.2659, allocations: 4 kB / 0.9558 GB, free: 2.984 MB / 0.7325 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 9.979e-05/0.266, allocations: 125.8 kB / 0.9559 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.266, allocations: 7.906 kB / 0.9559 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.117e-05/0.2661, allocations: 12.72 kB / 0.9559 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.2661, allocations: 4 kB / 0.9559 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.2661, allocations: 0 / 0.9559 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2661, allocations: 3.984 kB / 0.9559 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.2663, allocations: 197.6 kB / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2663, allocations: 0 / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.2664, allocations: 27.91 kB / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2664, allocations: 0 / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.2665, allocations: 0 / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2665, allocations: 0 / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2665, allocations: 480 / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004399/0.2669, allocations: 192.7 kB / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.267, allocations: 85.02 kB / 0.9564 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.267, allocations: 0 / 0.9564 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.2671, allocations: 27.97 kB / 0.9564 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.2672, allocations: 11.92 kB / 0.9564 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.2672, allocations: 4 kB / 0.9564 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.299e-05/0.2673, allocations: 109.1 kB / 0.9565 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2673, allocations: 4 kB / 0.9566 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002629/0.2676, allocations: 43.94 kB / 0.9566 GB, free: 2.051 MB / 0.7325 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.0001669/0.2677, allocations: 111.2 kB / 0.9567 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004866/0.2682, allocations: 187.2 kB / 0.9569 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2683, allocations: 0 / 0.9569 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.2685, allocations: 67.94 kB / 0.9569 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.2687, allocations: 14.48 kB / 0.957 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005783/0.2693, allocations: 257.3 kB / 0.9572 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.2696, allocations: 0.7062 MB / 0.9579 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.2696, allocations: 11.44 kB / 0.9579 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.2696, allocations: 0 / 0.9579 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of Templates: time 0.003482/0.2731, allocations: 1.518 MB / 0.9594 GB, free: 15.11 MB / 0.7481 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches