Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker") translateModel(BuildingSystems.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.004826/0.004826, allocations: 103.5 kB / 15.73 MB, free: 6.004 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.001113/0.001113, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.27/1.27, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002038/0.002038, allocations: 290.3 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9097/0.9097, allocations: 169.2 MB / 0.4983 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 99.84 kB / 0.6814 GB, free: 7.02 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3709, allocations: 86.98 MB / 0.7664 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002548/0.3735, allocations: 1.538 MB / 0.7679 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009592/0.3744, allocations: 0.5744 MB / 0.7684 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.056e-05/0.3745, allocations: 4 kB / 0.7684 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.364e-05/0.3746, allocations: 7.875 kB / 0.7684 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.598e-05/0.3747, allocations: 19.84 kB / 0.7684 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.3751, allocations: 91.7 kB / 0.7685 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.3753, allocations: 95.7 kB / 0.7686 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.3754, allocations: 24.22 kB / 0.7686 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.3755, allocations: 47.77 kB / 0.7687 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.367e-05/0.3756, allocations: 47.83 kB / 0.7687 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.3756, allocations: 4 kB / 0.7687 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.3758, allocations: 87.84 kB / 0.7688 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.974e-05/0.3759, allocations: 23.92 kB / 0.7688 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.063e-05/0.3759, allocations: 43.72 kB / 0.7689 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.3761, allocations: 139.3 kB / 0.769 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3762, allocations: 0 / 0.769 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.223e-06/0.3762, allocations: 3.938 kB / 0.769 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.3762, allocations: 0 / 0.769 GB, free: 1.23 MB / 0.5294 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.0007501/0.3769, allocations: 451.3 kB / 0.7695 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.377, allocations: 12.03 kB / 0.7695 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.615e-05/0.377, allocations: 12.78 kB / 0.7695 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.3772, allocations: 196.1 kB / 0.7697 GB, free: 496 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.3772, allocations: 8.375 kB / 0.7697 GB, free: 488 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.3772, allocations: 8.375 kB / 0.7697 GB, free: 480 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.3775, allocations: 97.94 kB / 0.7698 GB, free: 376 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3776, allocations: 3.984 kB / 0.7698 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.3776, allocations: 4 kB / 0.7698 GB, free: 368 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.591e-05/0.3776, allocations: 4 kB / 0.7698 GB, free: 364 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.3779, allocations: 95.84 kB / 0.7699 GB, free: 268 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006356/0.3786, allocations: 352.6 kB / 0.7702 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002896/0.3789, allocations: 90.52 kB / 0.7703 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.3791, allocations: 60.88 kB / 0.7704 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.3791, allocations: 3.938 kB / 0.7704 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.3794, allocations: 107.3 kB / 0.7705 GB, free: 15.59 MB / 0.545 GB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.3794, allocations: 0 / 0.7705 GB, free: 15.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=9): time 0.0006222/0.38, allocations: 217.5 kB / 0.7707 GB, free: 15.37 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.3801, allocations: 51.52 kB / 0.7707 GB, free: 15.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.3802, allocations: 143.7 kB / 0.7709 GB, free: 15.16 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.3802, allocations: 33.7 kB / 0.7709 GB, free: 15.12 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.3803, allocations: 96.12 kB / 0.771 GB, free: 15.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.3803, allocations: 35.55 kB / 0.771 GB, free: 14.98 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/0.3804, allocations: 21.72 kB / 0.771 GB, free: 14.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.3805, allocations: 322.8 kB / 0.7713 GB, free: 14.63 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.3807, allocations: 59.95 kB / 0.7714 GB, free: 14.57 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.3808, allocations: 63.88 kB / 0.7715 GB, free: 14.51 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/0.3812, allocations: 142.8 kB / 0.7716 GB, free: 14.36 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3812, allocations: 0 / 0.7716 GB, free: 14.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004317/0.3816, allocations: 199.2 kB / 0.7718 GB, free: 14.16 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.3817, allocations: 37.78 kB / 0.7718 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.3817, allocations: 3.938 kB / 0.7718 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.3817, allocations: 4 kB / 0.7718 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.3819, allocations: 15.98 kB / 0.7719 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.3819, allocations: 7.938 kB / 0.7719 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.382, allocations: 15.92 kB / 0.7719 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.382, allocations: 11.98 kB / 0.7719 GB, free: 14.05 MB / 0.545 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.191e-05/0.3821, allocations: 117.8 kB / 0.772 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.3822, allocations: 11.81 kB / 0.772 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.196e-05/0.3822, allocations: 20.7 kB / 0.772 GB, free: 13.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.3822, allocations: 4 kB / 0.772 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3822, allocations: 0 / 0.772 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3822, allocations: 0 / 0.772 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.3824, allocations: 205.5 kB / 0.7722 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3824, allocations: 0 / 0.7722 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.3825, allocations: 15.98 kB / 0.7722 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.3825, allocations: 0 / 0.7722 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3826, allocations: 0 / 0.7722 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.3826, allocations: 3.984 kB / 0.7722 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3826, allocations: 4 kB / 0.7723 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004132/0.383, allocations: 176.8 kB / 0.7724 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.3831, allocations: 89 kB / 0.7725 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.3831, allocations: 4 kB / 0.7725 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.3832, allocations: 15.97 kB / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.3833, allocations: 19.98 kB / 0.7725 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.3833, allocations: 7.984 kB / 0.7726 GB, free: 13.28 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.998e-05/0.3834, allocations: 103.3 kB / 0.7726 GB, free: 13.18 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3834, allocations: 0 / 0.7726 GB, free: 13.18 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002408/0.3836, allocations: 35.94 kB / 0.7727 GB, free: 13.14 MB / 0.545 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.0001659/0.3838, allocations: 127.2 kB / 0.7728 GB, free: 13.01 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004542/0.3843, allocations: 183.2 kB / 0.773 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3843, allocations: 0 / 0.773 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.3845, allocations: 71.88 kB / 0.773 GB, free: 12.75 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.3847, allocations: 5.891 kB / 0.7731 GB, free: 12.74 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005039/0.3852, allocations: 235.6 kB / 0.7733 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.3854, allocations: 0.6963 MB / 0.774 GB, free: 11.76 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.598e-05/0.3855, allocations: 15.97 kB / 0.774 GB, free: 11.75 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.101e-05/0.3856, allocations: 15.42 kB / 0.774 GB, free: 11.73 MB / 0.545 GB Notification: Performance of SimCode: time 1.483e-06/0.3856, allocations: 0 / 0.774 GB, free: 11.73 MB / 0.545 GB Notification: Performance of Templates: time 0.00391/0.3895, allocations: 1.45 MB / 0.7754 GB, free: 10.28 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)