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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001554/0.001554, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001801/0.001801, allocations: 190.6 kB / 16.25 MB, free: 6.621 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.431/1.431, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.836/2.836, allocations: 472.6 MB / 0.7448 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 60.67 kB / 0.9116 GB, free: 33.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3032, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002476/0.3057, allocations: 1.621 MB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008432/0.3066, allocations: 0.565 MB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.479e-05/0.3066, allocations: 3.938 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.252e-05/0.3067, allocations: 7.938 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.244e-05/0.3068, allocations: 19.84 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.3071, allocations: 79.86 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.3073, allocations: 91.7 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.635e-05/0.3074, allocations: 24.2 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.3075, allocations: 47.84 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.173e-05/0.3075, allocations: 43.77 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.3076, allocations: 8 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.939e-05/0.3077, allocations: 63.89 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.534e-05/0.3077, allocations: 27.91 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.469e-05/0.3078, allocations: 39.78 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.308, allocations: 139.8 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.308, allocations: 0 / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.322e-06/0.308, allocations: 0 / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.308, allocations: 0 / 1.07 GB, free: 8.008 MB / 0.8262 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.0007134/0.3087, allocations: 452.7 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.3087, allocations: 8.031 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.102e-05/0.3088, allocations: 12.84 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.309, allocations: 200.1 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.309, allocations: 384 / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.309, allocations: 4.375 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.3093, allocations: 109.9 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3093, allocations: 0 / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.3093, allocations: 3.938 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.3094, allocations: 7.984 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002958/0.3097, allocations: 91.91 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.3102, allocations: 344.6 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.3105, allocations: 98.5 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.3107, allocations: 60.88 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.3107, allocations: 0 / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.311, allocations: 127.3 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.311, allocations: 0 / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0005769/0.3116, allocations: 201.4 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.3116, allocations: 55.41 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.3118, allocations: 147.3 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.3118, allocations: 25.7 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.3119, allocations: 100 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.3119, allocations: 31.55 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/0.3119, allocations: 25.7 kB / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.312, allocations: 326.8 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.3122, allocations: 55.95 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.3124, allocations: 55.95 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/0.3127, allocations: 146.5 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3127, allocations: 0 / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004198/0.3131, allocations: 207.2 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.3132, allocations: 29.7 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3132, allocations: 4 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.3132, allocations: 0 / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.3134, allocations: 23.97 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.3134, allocations: 0 / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.3135, allocations: 15.92 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.3135, allocations: 4 kB / 1.073 GB, free: 4.844 MB / 0.8262 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.12e-05/0.3136, allocations: 137.8 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.3136, allocations: 15.81 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.968e-05/0.3137, allocations: 12.72 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.3137, allocations: 4 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.3137, allocations: 0 / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.3137, allocations: 480 / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.3139, allocations: 197.5 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3139, allocations: 0 / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.314, allocations: 19.97 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.314, allocations: 4 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.314, allocations: 3.938 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.314, allocations: 0 / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.314, allocations: 4 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.3144, allocations: 188.8 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.3145, allocations: 85.02 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.3145, allocations: 4 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.3146, allocations: 15.97 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.985e-05/0.3147, allocations: 11.98 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.3147, allocations: 4 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.163e-05/0.3148, allocations: 109.1 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of sort global known variables: time 8.606e-06/0.3148, allocations: 0 / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002285/0.315, allocations: 43.88 kB / 1.074 GB, free: 3.902 MB / 0.8262 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.0001433/0.3152, allocations: 111.2 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004497/0.3156, allocations: 191.4 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3157, allocations: 0 / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.3159, allocations: 71.88 kB / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.3161, allocations: 17.67 kB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/0.3166, allocations: 247.5 kB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.3168, allocations: 0.708 MB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.642e-05/0.3169, allocations: 15.97 kB / 1.075 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.804e-05/0.3169, allocations: 11.44 kB / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3169, allocations: 0 / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of Templates: time 0.003462/0.3204, allocations: 1.329 MB / 1.077 GB, free: 1.145 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches