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.001364/0.001364, allocations: 108.9 kB / 16.41 MB, free: 6.5 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.001304/0.001304, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.458/1.458, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002581/0.002581, allocations: 295.5 kB / 291.5 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 1.02/1.02, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002734/0.002734, allocations: 96.17 kB / 0.6821 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4407/0.4435, allocations: 86.98 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.003137/0.4466, allocations: 1.554 MB / 0.7685 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.4477, allocations: 0.5744 MB / 0.7691 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.945e-05/0.4478, allocations: 0 / 0.7691 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.4479, allocations: 3.938 kB / 0.7691 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.775e-05/0.448, allocations: 23.8 kB / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.4484, allocations: 91.77 kB / 0.7692 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.4486, allocations: 107.6 kB / 0.7693 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.4487, allocations: 8.234 kB / 0.7693 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.4488, allocations: 47.78 kB / 0.7694 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.4489, allocations: 47.81 kB / 0.7694 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.449, allocations: 8 kB / 0.7694 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.4491, allocations: 87.84 kB / 0.7695 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.373e-05/0.4492, allocations: 23.92 kB / 0.7695 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.056e-05/0.4493, allocations: 39.73 kB / 0.7696 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.4495, allocations: 149.2 kB / 0.7697 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.4495, allocations: 0 / 0.7697 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.383e-06/0.4495, allocations: 3.938 kB / 0.7697 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.4495, allocations: 0 / 0.7697 GB, free: 1.156 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.000913/0.4504, allocations: 452.6 kB / 0.7701 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.4505, allocations: 8.031 kB / 0.7702 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.34e-05/0.4505, allocations: 16.89 kB / 0.7702 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.4508, allocations: 196.1 kB / 0.7704 GB, free: 416 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-06/0.4508, allocations: 384 / 0.7704 GB, free: 416 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.655e-05/0.4508, allocations: 8.375 kB / 0.7704 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.4511, allocations: 101.9 kB / 0.7705 GB, free: 300 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.4511, allocations: 3.984 kB / 0.7705 GB, free: 296 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.4511, allocations: 4 kB / 0.7705 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.4512, allocations: 4 kB / 0.7705 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.4515, allocations: 83.92 kB / 0.7706 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007634/0.4523, allocations: 356.5 kB / 0.7709 GB, free: 15.8 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.4526, allocations: 90.52 kB / 0.771 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.4528, allocations: 52.88 kB / 0.771 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.4529, allocations: 0 / 0.771 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003703/0.4532, allocations: 119.3 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.4532, allocations: 112 / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=9): time 0.0006985/0.4539, allocations: 209.4 kB / 0.7713 GB, free: 15.31 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.454, allocations: 55.41 kB / 0.7714 GB, free: 15.24 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.4541, allocations: 143.8 kB / 0.7715 GB, free: 15.09 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.4541, allocations: 29.7 kB / 0.7716 GB, free: 15.06 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.021e-05/0.4542, allocations: 100.1 kB / 0.7717 GB, free: 14.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/0.4542, allocations: 31.8 kB / 0.7717 GB, free: 14.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.4543, allocations: 25.72 kB / 0.7717 GB, free: 14.89 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4544, allocations: 326.8 kB / 0.772 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.4547, allocations: 52.23 kB / 0.7721 GB, free: 14.52 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.4548, allocations: 71.88 kB / 0.7721 GB, free: 14.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003851/0.4552, allocations: 142.4 kB / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4552, allocations: 0 / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005128/0.4557, allocations: 195.2 kB / 0.7725 GB, free: 14.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.956e-05/0.4558, allocations: 41.69 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4558, allocations: 0 / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.4558, allocations: 0 / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.456, allocations: 19.92 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.456, allocations: 0 / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.4561, allocations: 19.98 kB / 0.7725 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.4561, allocations: 3.984 kB / 0.7725 GB, free: 14 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 0.0001208/0.4563, allocations: 132.2 kB / 0.7727 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.4563, allocations: 11.95 kB / 0.7727 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.933e-05/0.4563, allocations: 16.7 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4563, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4563, allocations: 4 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.4563, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.4566, allocations: 205.5 kB / 0.7729 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4566, allocations: 4 kB / 0.7729 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.4567, allocations: 15.98 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4567, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.4567, allocations: 4 kB / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.4567, allocations: 7.984 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4567, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004746/0.4572, allocations: 176.9 kB / 0.7731 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.03e-05/0.4572, allocations: 93.05 kB / 0.7732 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.4573, allocations: 0 / 0.7732 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.4574, allocations: 15.98 kB / 0.7732 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.82e-05/0.4575, allocations: 15.98 kB / 0.7732 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.4575, allocations: 7.969 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.264e-05/0.4575, allocations: 105.3 kB / 0.7733 GB, free: 13.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4575, allocations: 0 / 0.7733 GB, free: 13.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002606/0.4578, allocations: 40.06 kB / 0.7734 GB, free: 13.07 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.0001858/0.458, allocations: 119.2 kB / 0.7735 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004968/0.4585, allocations: 183.2 kB / 0.7736 GB, free: 12.76 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4585, allocations: 0 / 0.7736 GB, free: 12.76 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.4587, allocations: 67.88 kB / 0.7737 GB, free: 12.69 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.4589, allocations: 11.94 kB / 0.7737 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005853/0.4595, allocations: 231.6 kB / 0.7739 GB, free: 12.43 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.4598, allocations: 0.6963 MB / 0.7746 GB, free: 11.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.915e-05/0.4599, allocations: 11.98 kB / 0.7746 GB, free: 11.69 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.46, allocations: 23.36 kB / 0.7747 GB, free: 11.67 MB / 0.545 GB Notification: Performance of SimCode: time 3.81e-07/0.46, allocations: 0 / 0.7747 GB, free: 11.67 MB / 0.545 GB Notification: Performance of Templates: time 0.004507/0.4645, allocations: 1.431 MB / 0.7761 GB, free: 10.25 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.SignalRanker.pipe 2>&1)