Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.00861/0.00861, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.00167/0.00167, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.454/1.454, allocations: 222.9 MB / 240.5 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.921/2.921, allocations: 461.9 MB / 0.7348 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 63.56 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3097, allocations: 157.4 MB / 1.053 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.003097/0.3128, allocations: 1.611 MB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.314, allocations: 0.5999 MB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.333e-05/0.3141, allocations: 0 / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.3142, allocations: 15.92 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.035e-05/0.3144, allocations: 7.875 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003806/0.3148, allocations: 71.86 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.3149, allocations: 91.69 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.315, allocations: 24.22 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.3152, allocations: 43.78 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.3153, allocations: 47.81 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.3154, allocations: 4 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.3155, allocations: 55.91 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.7e-05/0.3156, allocations: 19.91 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.462e-05/0.3156, allocations: 35.8 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.3158, allocations: 92.06 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3158, allocations: 0 / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3158, allocations: 0 / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.3158, allocations: 0 / 1.055 GB, free: 5.641 MB / 0.8106 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.0008284/0.3167, allocations: 452.8 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3167, allocations: 15.97 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.722e-05/0.3168, allocations: 8.844 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.317, allocations: 201.6 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.317, allocations: 16.31 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.317, allocations: 4.375 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.3174, allocations: 105.9 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3174, allocations: 0 / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.3174, allocations: 0 / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.307e-05/0.3174, allocations: 4 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.3178, allocations: 87.92 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007064/0.3185, allocations: 348.6 kB / 1.057 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000314/0.3188, allocations: 102.4 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.319, allocations: 48.89 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.319, allocations: 12.05 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.3193, allocations: 111.3 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 2.094e-06/0.3194, allocations: 4 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0006692/0.32, allocations: 201.5 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.3201, allocations: 55.34 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.3202, allocations: 139.4 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.3203, allocations: 33.8 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.569e-05/0.3203, allocations: 104 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.3204, allocations: 27.64 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.205e-05/0.3204, allocations: 29.7 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3206, allocations: 322.8 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.3208, allocations: 55.95 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.321, allocations: 59.89 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000359/0.3213, allocations: 150.5 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3213, allocations: 0 / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004786/0.3218, allocations: 195.1 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.3219, allocations: 37.69 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3219, allocations: 4 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3219, allocations: 0 / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.3221, allocations: 15.98 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3221, allocations: 4 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.3222, allocations: 23.91 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.3223, allocations: 4 kB / 1.058 GB, free: 2.469 MB / 0.8106 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 0.0001143/0.3224, allocations: 122.2 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.3224, allocations: 11.91 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.3224, allocations: 20.64 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/0.3225, allocations: 4 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3225, allocations: 0 / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3225, allocations: 3.938 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.3227, allocations: 205.5 kB / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3227, allocations: 0 / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.3228, allocations: 11.98 kB / 1.059 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3228, allocations: 4 kB / 1.059 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.3228, allocations: 7.984 kB / 1.059 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3229, allocations: 4 kB / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3229, allocations: 0 / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004375/0.3233, allocations: 184.8 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.173e-05/0.3234, allocations: 89.02 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.3234, allocations: 0 / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.3235, allocations: 15.98 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.318e-05/0.3236, allocations: 19.97 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.3236, allocations: 0 / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.247e-05/0.3237, allocations: 105.3 kB / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3237, allocations: 0 / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002777/0.324, allocations: 43.92 kB / 1.059 GB, free: 1.539 MB / 0.8106 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.0002093/0.3242, allocations: 115.2 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000482/0.3247, allocations: 187.2 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3247, allocations: 0 / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.3249, allocations: 59.95 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002323/0.3252, allocations: 11.98 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006189/0.3258, allocations: 283 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.3261, allocations: 0.7004 MB / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.48e-05/0.3261, allocations: 15.44 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of SimCode: time 3.8e-07/0.3262, allocations: 0 / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of Templates: time 0.003599/0.3298, allocations: 1.513 MB / 1.062 GB, free: 14.59 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_SignalRanker.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches