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.01039/0.01039, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.002388/0.002388, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.222/2.222, allocations: 390.2 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 64.14 kB / 0.9508 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9106/0.9119, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002852/0.9148, allocations: 1.561 MB / 1.089 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001116/0.9159, allocations: 0.5639 MB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.457e-05/0.916, allocations: 5.25 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.9161, allocations: 6.609 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.071e-05/0.9162, allocations: 20.17 kB / 1.09 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.9166, allocations: 94.77 kB / 1.09 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.9168, allocations: 101.5 kB / 1.09 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.9169, allocations: 21.2 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.9171, allocations: 48.8 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.865e-05/0.9172, allocations: 45.45 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.9172, allocations: 6.312 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.9174, allocations: 87.95 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.072e-05/0.9174, allocations: 21.66 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.509e-05/0.9175, allocations: 37.05 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.9178, allocations: 139.8 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.9178, allocations: 0.5938 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/0.9178, allocations: 0.7969 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.9178, allocations: 0.7188 kB / 1.091 GB, free: 3.773 MB / 0.8575 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.0007932/0.9186, allocations: 463.4 kB / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.9186, allocations: 10.55 kB / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.19e-05/0.9187, allocations: 13.42 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.9189, allocations: 191.6 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.9189, allocations: 11.39 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.9189, allocations: 4.125 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000323/0.9193, allocations: 106.9 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.9193, allocations: 3.938 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.9193, allocations: 4.609 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.32e-05/0.9193, allocations: 5.297 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.9197, allocations: 83.08 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006417/0.9203, allocations: 359.9 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.9207, allocations: 91.16 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.9209, allocations: 55.75 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.9209, allocations: 5.562 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000351/0.9213, allocations: 113.7 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.9213, allocations: 0 / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0007213/0.922, allocations: 204.2 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.922, allocations: 57.7 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.9221, allocations: 142.3 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.9222, allocations: 26.92 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.9222, allocations: 99.2 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.9223, allocations: 34.31 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.9223, allocations: 32.94 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.442e-05/0.9224, allocations: 328.8 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.9226, allocations: 52.48 kB / 1.093 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.9228, allocations: 57.5 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.9232, allocations: 143.2 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.9232, allocations: 5.062 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004808/0.9237, allocations: 195.1 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/0.9237, allocations: 32.86 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9238, allocations: 0.8438 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.9238, allocations: 0.9062 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.9239, allocations: 18.73 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.9239, allocations: 1.391 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.9241, allocations: 22.02 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.9241, allocations: 7.672 kB / 1.093 GB, free: 1.633 MB / 0.8575 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 8.959e-05/0.9242, allocations: 126.5 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.9243, allocations: 11.8 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/0.9243, allocations: 16.67 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.9243, allocations: 4.266 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.9243, allocations: 1.953 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.9243, allocations: 0 / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.9245, allocations: 210.2 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.9245, allocations: 0.8125 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.9246, allocations: 16.92 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.9246, allocations: 0 / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.9247, allocations: 2.75 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.9247, allocations: 4.969 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.9247, allocations: 0 / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004767/0.9252, allocations: 189.6 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.195e-05/0.9252, allocations: 83.92 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.9252, allocations: 6.766 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.9254, allocations: 13.44 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.9254, allocations: 18.22 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.9255, allocations: 3.031 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.415e-05/0.9255, allocations: 111.9 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9255, allocations: 0 / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002936/0.9258, allocations: 40.25 kB / 1.094 GB, free: 0.957 MB / 0.8575 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.0001762/0.926, allocations: 117.8 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005124/0.9266, allocations: 187.1 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.9266, allocations: 0.7188 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.9268, allocations: 65.98 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.927, allocations: 11.2 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000552/0.9276, allocations: 229.9 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/0.9278, allocations: 0.7063 MB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.711e-05/0.9279, allocations: 11.2 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.368e-05/0.9279, allocations: 13.73 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.9279, allocations: 0 / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.004891/0.9328, allocations: 1.416 MB / 1.097 GB, free: 15.76 MB / 0.8731 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