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.516/1.516, allocations: 249.5 MB / 257 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009795/0.0009795, allocations: 188 kB / 316.3 MB, free: 3.223 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.447/1.447, allocations: 205.3 MB / 0.5671 GB, free: 15.87 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.0008712/0.0008712, allocations: 81.52 kB / 0.6714 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.234e-05/1.238e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2158, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7554/0.9712, allocations: 133.6 MB / 1.016 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.9716, allocations: 77.14 kB / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01048/0.9821, allocations: 3.473 MB / 1.019 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.404e-06/0.9821, allocations: 0 / 1.019 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.491e-05/0.9821, allocations: 4 kB / 1.019 GB, free: 1.285 MB / 0.6355 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.000797/0.983, allocations: 449.8 kB / 1.02 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.983, allocations: 8.031 kB / 1.02 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.017e-05/0.9831, allocations: 11.91 kB / 1.02 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.9834, allocations: 194.4 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.9834, allocations: 7.188 kB / 1.02 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.9835, allocations: 8 kB / 1.02 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001468/0.9836, allocations: 35.98 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.9838, allocations: 81.72 kB / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.9838, allocations: 0 / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.9838, allocations: 0 / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.9838, allocations: 0 / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006768/0.9845, allocations: 346 kB / 1.02 GB, free: 104 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.9847, allocations: 48.33 kB / 1.02 GB, free: 60 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.369e-05/0.9847, allocations: 34.91 kB / 1.02 GB, free: 32 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.9848, allocations: 2.812 kB / 1.02 GB, free: 32 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.985, allocations: 93.47 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=9): time 1.624e-06/0.985, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of matching and sorting (n=9): time 0.000361/0.9853, allocations: 107.2 kB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.9854, allocations: 55.34 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.9855, allocations: 126 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.9856, allocations: 29.02 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.858e-05/0.9857, allocations: 103.2 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.9857, allocations: 23.2 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.848e-06/0.9858, allocations: 4 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.9859, allocations: 325.3 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.153e-05/0.986, allocations: 29.23 kB / 1.021 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.953e-05/0.9861, allocations: 31.17 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.9862, allocations: 34.89 kB / 1.021 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.9862, allocations: 0 / 1.021 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000246/0.9865, allocations: 127.3 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.091e-05/0.9865, allocations: 29.7 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.9866, allocations: 3.953 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.9866, allocations: 4 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.9868, allocations: 35.47 kB / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.9868, allocations: 0 / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.9869, allocations: 19.92 kB / 1.021 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.987, allocations: 4 kB / 1.021 GB, free: 14.92 MB / 0.6511 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 () * 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.0001214/0.9871, allocations: 109 kB / 1.022 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.9871, allocations: 11.89 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003087/0.9874, allocations: 116 kB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.9875, allocations: 7.953 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.9875, allocations: 3.984 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.9875, allocations: 0 / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.9877, allocations: 172.7 kB / 1.022 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.9877, allocations: 7.984 kB / 1.022 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.9879, allocations: 23.98 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.9879, allocations: 0 / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.9879, allocations: 4 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.9879, allocations: 0 / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.9879, allocations: 3.938 kB / 1.022 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.9882, allocations: 143 kB / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.9883, allocations: 85.02 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.9883, allocations: 7.922 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.9885, allocations: 19.98 kB / 1.022 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/0.9886, allocations: 19.72 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.9886, allocations: 0 / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.069e-05/0.9887, allocations: 109.2 kB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9887, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002672/0.989, allocations: 39.94 kB / 1.022 GB, free: 14.04 MB / 0.6511 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) * 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.0003157/0.9893, allocations: 125.3 kB / 1.022 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003342/0.9896, allocations: 163 kB / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.9897, allocations: 0 / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.9898, allocations: 68.69 kB / 1.023 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.99, allocations: 11.67 kB / 1.023 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000493/0.9905, allocations: 134.5 kB / 1.023 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.9911, allocations: 0.7041 MB / 1.023 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.72e-05/0.9912, allocations: 11.98 kB / 1.023 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.793e-05/0.9913, allocations: 15.42 kB / 1.023 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.9913, allocations: 0 / 1.023 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of Templates: time 0.004727/0.996, allocations: 1.225 MB / 1.025 GB, free: 11.57 MB / 0.6511 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