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.001234/0.001234, allocations: 108.4 kB / 16.41 MB, free: 6.457 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.00113/0.00113, allocations: 187 kB / 17.34 MB, free: 5.719 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.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.002183/0.002184, allocations: 291.2 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9678/0.9678, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 91.86 kB / 0.6821 GB, free: 7 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4799/0.4817, allocations: 86.97 MB / 0.767 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.SignalRanker): time 0.002521/0.4843, allocations: 1.543 MB / 0.7685 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009704/0.4853, allocations: 0.5705 MB / 0.7691 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.026e-05/0.4853, allocations: 3.938 kB / 0.7691 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.4854, allocations: 7.938 kB / 0.7691 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.927e-05/0.4855, allocations: 23.73 kB / 0.7691 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.4859, allocations: 87.77 kB / 0.7692 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.486, allocations: 99.62 kB / 0.7693 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.4862, allocations: 24.22 kB / 0.7693 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.4863, allocations: 47.78 kB / 0.7694 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.326e-05/0.4864, allocations: 47.81 kB / 0.7694 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.4864, allocations: 4 kB / 0.7694 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.4866, allocations: 87.92 kB / 0.7695 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.807e-05/0.4866, allocations: 27.84 kB / 0.7695 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.809e-05/0.4867, allocations: 39.8 kB / 0.7696 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002099/0.4869, allocations: 143.2 kB / 0.7697 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.4869, allocations: 0 / 0.7697 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.927e-06/0.487, allocations: 0 / 0.7697 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.487, allocations: 7.938 kB / 0.7697 GB, free: 1.164 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.0008291/0.4878, allocations: 447.3 kB / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.4878, allocations: 8.031 kB / 0.7701 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.429e-05/0.4879, allocations: 16.83 kB / 0.7701 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.4881, allocations: 188.2 kB / 0.7703 GB, free: 440 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.4881, allocations: 4.375 kB / 0.7703 GB, free: 436 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.4881, allocations: 4.375 kB / 0.7703 GB, free: 432 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.4885, allocations: 105.9 kB / 0.7704 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4885, allocations: 0 / 0.7704 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.4885, allocations: 4 kB / 0.7704 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.4885, allocations: 0 / 0.7704 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003368/0.4889, allocations: 99.89 kB / 0.7705 GB, free: 216 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006943/0.4896, allocations: 356.5 kB / 0.7709 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.4899, allocations: 90.52 kB / 0.771 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.4901, allocations: 64.88 kB / 0.771 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.4901, allocations: 0 / 0.771 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003177/0.4905, allocations: 111.3 kB / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of pre-optimization done (n=9): time 1.783e-06/0.4905, allocations: 4 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=9): time 0.0006707/0.4911, allocations: 209.3 kB / 0.7713 GB, free: 15.31 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.4912, allocations: 55.39 kB / 0.7714 GB, free: 15.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.4913, allocations: 143.9 kB / 0.7715 GB, free: 15.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.4914, allocations: 33.7 kB / 0.7716 GB, free: 15.06 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.033e-05/0.4914, allocations: 104.1 kB / 0.7717 GB, free: 14.95 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.4915, allocations: 27.56 kB / 0.7717 GB, free: 14.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-05/0.4915, allocations: 25.7 kB / 0.7717 GB, free: 14.89 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.4917, allocations: 326.8 kB / 0.772 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.4919, allocations: 55.95 kB / 0.7721 GB, free: 14.51 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.4921, allocations: 51.95 kB / 0.7721 GB, free: 14.46 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.4924, allocations: 150.5 kB / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.4925, allocations: 0 / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004663/0.4929, allocations: 199.1 kB / 0.7725 GB, free: 14.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.493, allocations: 29.7 kB / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.493, allocations: 4 kB / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.493, allocations: 0 / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.4932, allocations: 27.97 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.4932, allocations: 0 / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.4933, allocations: 11.98 kB / 0.7725 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.4934, allocations: 7.938 kB / 0.7725 GB, free: 14.01 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.0001012/0.4935, allocations: 128.1 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.4935, allocations: 15.81 kB / 0.7727 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.247e-05/0.4935, allocations: 16.72 kB / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/0.4936, allocations: 7.984 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4936, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4936, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.4938, allocations: 201.5 kB / 0.7729 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4938, allocations: 0 / 0.7729 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.4939, allocations: 19.97 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.4939, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.4939, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4939, allocations: 4 kB / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4939, allocations: 0 / 0.7729 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004471/0.4944, allocations: 189.2 kB / 0.7731 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.4944, allocations: 85.02 kB / 0.7732 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.4945, allocations: 0 / 0.7732 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.4946, allocations: 23.97 kB / 0.7732 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.4947, allocations: 11.98 kB / 0.7732 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.4947, allocations: 0 / 0.7732 GB, free: 13.23 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.928e-05/0.4948, allocations: 109.1 kB / 0.7733 GB, free: 13.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/0.4948, allocations: 0 / 0.7733 GB, free: 13.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002651/0.4951, allocations: 43.94 kB / 0.7733 GB, free: 13.08 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.0001829/0.4952, allocations: 119.2 kB / 0.7735 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004967/0.4958, allocations: 187.2 kB / 0.7736 GB, free: 12.76 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4958, allocations: 0 / 0.7736 GB, free: 12.76 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.496, allocations: 63.95 kB / 0.7737 GB, free: 12.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.4962, allocations: 11.98 kB / 0.7737 GB, free: 12.69 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005573/0.4968, allocations: 253.3 kB / 0.774 GB, free: 12.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.4971, allocations: 0.7002 MB / 0.7746 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.531e-05/0.4971, allocations: 19.42 kB / 0.7747 GB, free: 11.66 MB / 0.545 GB Notification: Performance of SimCode: time 2.6e-07/0.4971, allocations: 0 / 0.7747 GB, free: 11.66 MB / 0.545 GB Notification: Performance of Templates: time 0.003397/0.5005, allocations: 1.519 MB / 0.7761 GB, free: 10.15 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)