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.009867/0.009867, allocations: 102 kB / 15.73 MB, free: 6.039 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.001995/0.001995, allocations: 194 kB / 16.67 MB, free: 5.961 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.335/2.335, allocations: 390.2 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 63.91 kB / 0.9508 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9183/0.9198, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002767/0.9226, allocations: 1.556 MB / 1.089 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009029/0.9236, allocations: 0.5666 MB / 1.09 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.057e-05/0.9236, allocations: 5.312 kB / 1.09 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.335e-05/0.9237, allocations: 6 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.844e-05/0.9238, allocations: 24.28 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.9242, allocations: 93.17 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001351/0.9243, allocations: 98.8 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.9245, allocations: 21.52 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.9246, allocations: 48.77 kB / 1.09 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.9247, allocations: 44.89 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.9247, allocations: 7.5 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000167/0.9249, allocations: 83.16 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.516e-05/0.925, allocations: 21.16 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.719e-05/0.925, allocations: 45.81 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002513/0.9253, allocations: 136.1 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.9253, allocations: 0 / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.525e-06/0.9253, allocations: 1.094 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.9253, allocations: 7.938 kB / 1.091 GB, free: 3.754 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.000743/0.9261, allocations: 449.9 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.9261, allocations: 9.125 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.9262, allocations: 13.84 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.9263, allocations: 198.9 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.9264, allocations: 3 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.9264, allocations: 7.75 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.9267, allocations: 106.3 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.9267, allocations: 0.6875 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.9267, allocations: 5.641 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.9268, allocations: 3.734 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003311/0.9271, allocations: 83.62 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.9277, allocations: 355.7 kB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003/0.928, allocations: 87.92 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.9282, allocations: 63.8 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.9282, allocations: 0.6875 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.9285, allocations: 113.4 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.9285, allocations: 0.9062 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0006314/0.9292, allocations: 212.4 kB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.496e-05/0.9292, allocations: 53.28 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.213e-05/0.9293, allocations: 136.9 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.9293, allocations: 30.7 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.476e-05/0.9294, allocations: 99.39 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.9294, allocations: 29.91 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.9295, allocations: 25.27 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.393e-05/0.9295, allocations: 329.2 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.9297, allocations: 55.62 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.9299, allocations: 62.33 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.9302, allocations: 142.7 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9302, allocations: 4.562 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004426/0.9307, allocations: 207.7 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.9307, allocations: 32.58 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.9307, allocations: 0.875 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.9308, allocations: 0.9062 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.9309, allocations: 19.05 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.9309, allocations: 4 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.9311, allocations: 14.77 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.9311, allocations: 3.281 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 7.405e-05/0.9312, allocations: 130.4 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.9312, allocations: 12.58 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.226e-05/0.9312, allocations: 12.33 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.9312, allocations: 4.312 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.9313, allocations: 0.6875 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.9313, allocations: 5.5 kB / 1.094 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.9314, allocations: 201.6 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.9314, allocations: 1.484 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.9315, allocations: 20.31 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.9315, allocations: 0.75 kB / 1.094 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.9316, allocations: 6.672 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.9316, allocations: 0.7188 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.9316, allocations: 0 / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004134/0.932, allocations: 185.6 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/0.932, allocations: 84.55 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.9321, allocations: 2.266 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.9322, allocations: 20.81 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.9323, allocations: 11.33 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.9323, allocations: 10.59 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.393e-05/0.9323, allocations: 107.1 kB / 1.094 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9323, allocations: 0 / 1.094 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002859/0.9326, allocations: 39.98 kB / 1.094 GB, free: 0.9609 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.00015/0.9328, allocations: 115.2 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004548/0.9333, allocations: 192.3 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.9333, allocations: 0 / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.9335, allocations: 61.81 kB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.9337, allocations: 10.89 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005339/0.9342, allocations: 236.8 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.9344, allocations: 0.701 MB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.091e-05/0.9345, allocations: 12.09 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.798e-05/0.9345, allocations: 13.12 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.9345, allocations: 0 / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.004626/0.9392, allocations: 1.463 MB / 1.097 GB, free: 15.75 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