Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.438/1.438, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00116/0.001161, allocations: 184.2 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.922/1.922, allocations: 205.4 MB / 0.5775 GB, free: 20.55 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 95.14 kB / 0.6821 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 9.219 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2148, allocations: 106.3 MB / 0.9001 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1694/0.3842, allocations: 133.3 MB / 1.03 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.3846, allocations: 75.95 kB / 1.03 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0102/0.3948, allocations: 3.5 MB / 1.034 GB, free: 7.367 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.896e-06/0.3948, allocations: 0 / 1.034 GB, free: 7.367 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.296e-05/0.3948, allocations: 8 kB / 1.034 GB, free: 7.359 MB / 0.6823 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.0007224/0.3956, allocations: 452.5 kB / 1.034 GB, free: 6.863 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3956, allocations: 12.02 kB / 1.034 GB, free: 6.852 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.112e-05/0.3957, allocations: 7.906 kB / 1.034 GB, free: 6.844 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.3959, allocations: 202.8 kB / 1.034 GB, free: 6.605 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.3959, allocations: 8 kB / 1.034 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.396, allocations: 4 kB / 1.034 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.3963, allocations: 105.6 kB / 1.035 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3963, allocations: 0 / 1.035 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.3963, allocations: 7.984 kB / 1.035 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.3964, allocations: 8 kB / 1.035 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003148/0.3967, allocations: 107.8 kB / 1.035 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006535/0.3973, allocations: 372.6 kB / 1.035 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000325/0.3977, allocations: 102.5 kB / 1.035 GB, free: 5.84 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.3977, allocations: 64 / 1.035 GB, free: 5.84 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002918/0.398, allocations: 139.2 kB / 1.035 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.398, allocations: 4 kB / 1.035 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9): time 0.0007151/0.3988, allocations: 306.5 kB / 1.036 GB, free: 5.363 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.3988, allocations: 63.39 kB / 1.036 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.3989, allocations: 127 kB / 1.036 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.399, allocations: 25.7 kB / 1.036 GB, free: 5.129 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.413e-05/0.399, allocations: 104.2 kB / 1.036 GB, free: 5.023 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.239e-05/0.3991, allocations: 27.53 kB / 1.036 GB, free: 4.996 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-06/0.3991, allocations: 8 kB / 1.036 GB, free: 4.988 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3992, allocations: 318.8 kB / 1.036 GB, free: 4.668 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3994, allocations: 67.95 kB / 1.036 GB, free: 4.602 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.3996, allocations: 59.95 kB / 1.036 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002022/0.3998, allocations: 97.66 kB / 1.036 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3998, allocations: 0 / 1.036 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004829/0.4003, allocations: 219.2 kB / 1.037 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/0.4004, allocations: 41.64 kB / 1.037 GB, free: 4.168 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.4004, allocations: 0 / 1.037 GB, free: 4.168 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.4004, allocations: 0 / 1.037 GB, free: 4.168 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.4006, allocations: 27.98 kB / 1.037 GB, free: 4.141 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.4006, allocations: 0 / 1.037 GB, free: 4.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.4007, allocations: 23.97 kB / 1.037 GB, free: 4.117 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.4008, allocations: 4 kB / 1.037 GB, free: 4.113 MB / 0.6823 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.4009, allocations: 113.8 kB / 1.037 GB, free: 3.992 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/0.4009, allocations: 11.81 kB / 1.037 GB, free: 3.98 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004893/0.4014, allocations: 202.2 kB / 1.037 GB, free: 3.781 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4014, allocations: 4 kB / 1.037 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4014, allocations: 0 / 1.037 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.4014, allocations: 0 / 1.037 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002056/0.4017, allocations: 205.5 kB / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4017, allocations: 4 kB / 1.037 GB, free: 3.523 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.4018, allocations: 16.45 kB / 1.037 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.4018, allocations: 7.938 kB / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.4018, allocations: 3.984 kB / 1.037 GB, free: 3.496 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.4018, allocations: 3.953 kB / 1.037 GB, free: 3.492 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4019, allocations: 4 kB / 1.037 GB, free: 3.488 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000428/0.4023, allocations: 200.9 kB / 1.037 GB, free: 3.273 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.907e-05/0.4023, allocations: 88.95 kB / 1.038 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.4024, allocations: 4 kB / 1.038 GB, free: 3.164 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.4025, allocations: 15.98 kB / 1.038 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/0.4026, allocations: 23.86 kB / 1.038 GB, free: 3.125 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.4026, allocations: 4 kB / 1.038 GB, free: 3.121 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.912e-05/0.4027, allocations: 113 kB / 1.038 GB, free: 3.012 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4027, allocations: 0 / 1.038 GB, free: 3.012 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002472/0.403, allocations: 36 kB / 1.038 GB, free: 2.977 MB / 0.6823 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: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001899/0.4032, allocations: 119.2 kB / 1.038 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005072/0.4037, allocations: 234.6 kB / 1.038 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.4037, allocations: 0 / 1.038 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002356/0.4039, allocations: 105.6 kB / 1.038 GB, free: 2.492 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001613/0.4041, allocations: 8 kB / 1.038 GB, free: 2.484 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005147/0.4046, allocations: 255 kB / 1.038 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.4049, allocations: 0.7082 MB / 1.039 GB, free: 1.469 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.522e-05/0.405, allocations: 7.984 kB / 1.039 GB, free: 1.461 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.822e-05/0.405, allocations: 11.44 kB / 1.039 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of SimCode: time 3.2e-07/0.405, allocations: 7.938 kB / 1.039 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of Templates: time 0.003593/0.4086, allocations: 1.28 MB / 1.04 GB, free: 176 kB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_SignalRanker.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches