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.001169/0.001169, allocations: 111.2 kB / 16.41 MB, free: 6.496 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.0009887/0.0009887, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002187/0.002187, allocations: 288.5 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9587/0.9587, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00209/0.002091, allocations: 91.84 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4069, allocations: 86.98 MB / 0.767 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002625/0.4095, allocations: 1.549 MB / 0.7685 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.4106, allocations: 0.5705 MB / 0.7691 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.717e-05/0.4107, allocations: 0 / 0.7691 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.951e-05/0.4108, allocations: 11.86 kB / 0.7691 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.711e-05/0.4109, allocations: 23.75 kB / 0.7691 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.4113, allocations: 91.77 kB / 0.7692 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.4114, allocations: 103.7 kB / 0.7693 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.4116, allocations: 12.23 kB / 0.7693 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.4117, allocations: 47.78 kB / 0.7694 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.616e-05/0.4118, allocations: 47.81 kB / 0.7694 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.289e-05/0.4118, allocations: 8 kB / 0.7694 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.412, allocations: 91.91 kB / 0.7695 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.467e-05/0.4121, allocations: 15.92 kB / 0.7695 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.582e-05/0.4121, allocations: 39.73 kB / 0.7696 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.4123, allocations: 151.2 kB / 0.7697 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4124, allocations: 4 kB / 0.7697 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.71e-07/0.4124, allocations: 0 / 0.7697 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.4124, allocations: 0 / 0.7697 GB, free: 1.141 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.0007876/0.4132, allocations: 455.3 kB / 0.7701 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4132, allocations: 8.031 kB / 0.7701 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.4133, allocations: 8.844 kB / 0.7702 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.4135, allocations: 188.2 kB / 0.7703 GB, free: 416 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.4135, allocations: 4.375 kB / 0.7703 GB, free: 412 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.4135, allocations: 4.375 kB / 0.7703 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.4138, allocations: 109.9 kB / 0.7704 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.4138, allocations: 0 / 0.7704 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.4138, allocations: 8 kB / 0.7705 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.4139, allocations: 4 kB / 0.7705 GB, free: 280 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003231/0.4142, allocations: 83.92 kB / 0.7705 GB, free: 196 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000694/0.4149, allocations: 352.5 kB / 0.7709 GB, free: 15.8 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.4152, allocations: 98.5 kB / 0.771 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.4154, allocations: 60.88 kB / 0.771 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.4154, allocations: 0 / 0.771 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002968/0.4157, allocations: 119.3 kB / 0.7711 GB, free: 15.5 MB / 0.545 GB Notification: Performance of pre-optimization done (n=9): time 1.833e-06/0.4158, allocations: 7.938 kB / 0.7711 GB, free: 15.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=9): time 0.0006398/0.4164, allocations: 193.5 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.4165, allocations: 59.41 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.4166, allocations: 151.7 kB / 0.7715 GB, free: 15.07 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.4166, allocations: 25.7 kB / 0.7716 GB, free: 15.04 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.277e-05/0.4167, allocations: 100.2 kB / 0.7717 GB, free: 14.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.855e-05/0.4167, allocations: 27.55 kB / 0.7717 GB, free: 14.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.852e-05/0.4168, allocations: 29.7 kB / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.4169, allocations: 326.8 kB / 0.772 GB, free: 14.55 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.4171, allocations: 59.95 kB / 0.7721 GB, free: 14.49 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.4173, allocations: 51.95 kB / 0.7721 GB, free: 14.44 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.4177, allocations: 142.5 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4177, allocations: 0 / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004558/0.4181, allocations: 199.2 kB / 0.7725 GB, free: 14.08 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.4182, allocations: 33.69 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.4182, allocations: 0 / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.4182, allocations: 3.938 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.4184, allocations: 23.98 kB / 0.7725 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.4184, allocations: 0 / 0.7725 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.4185, allocations: 15.97 kB / 0.7725 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.4185, allocations: 4 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 9.089e-05/0.4186, allocations: 124.2 kB / 0.7726 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.4187, allocations: 15.81 kB / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.824e-05/0.4187, allocations: 12.7 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.4187, allocations: 8 kB / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4187, allocations: 3.984 kB / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.4187, allocations: 3.938 kB / 0.7727 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.4189, allocations: 205.9 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4189, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.4191, allocations: 19.98 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.4191, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.4191, allocations: 3.984 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.4191, allocations: 7.938 kB / 0.7729 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.4191, allocations: 0 / 0.7729 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000437/0.4195, allocations: 192.8 kB / 0.7731 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-05/0.4196, allocations: 81.02 kB / 0.7732 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.4196, allocations: 4 kB / 0.7732 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.4198, allocations: 11.98 kB / 0.7732 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/0.4198, allocations: 15.97 kB / 0.7732 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.4198, allocations: 4 kB / 0.7732 GB, free: 13.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.988e-05/0.4199, allocations: 105.2 kB / 0.7733 GB, free: 13.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4199, allocations: 0 / 0.7733 GB, free: 13.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002512/0.4202, allocations: 43.92 kB / 0.7734 GB, free: 13.06 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.0001519/0.4204, allocations: 119.2 kB / 0.7735 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004687/0.4208, allocations: 183.2 kB / 0.7736 GB, free: 12.74 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4208, allocations: 0 / 0.7736 GB, free: 12.74 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.4211, allocations: 63.95 kB / 0.7737 GB, free: 12.68 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.4213, allocations: 12 kB / 0.7737 GB, free: 12.67 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005332/0.4218, allocations: 257.3 kB / 0.774 GB, free: 12.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.4221, allocations: 0.6963 MB / 0.7746 GB, free: 11.66 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/0.4221, allocations: 23.38 kB / 0.7747 GB, free: 11.64 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4221, allocations: 0 / 0.7747 GB, free: 11.64 MB / 0.545 GB Notification: Performance of Templates: time 0.003207/0.4254, allocations: 1.529 MB / 0.7762 GB, free: 10.11 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)