Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.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.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006254/0.006254, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.00145/0.00145, allocations: 188.9 kB / 16.67 MB, free: 5.934 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.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002069/0.002068, allocations: 285.3 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9036/0.9036, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 91.86 kB / 0.6814 GB, free: 7.027 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4033/0.405, allocations: 86.98 MB / 0.7663 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.003485/0.4086, allocations: 1.464 MB / 0.7678 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009853/0.4096, allocations: 468.7 kB / 0.7682 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.945e-05/0.4096, allocations: 3.938 kB / 0.7682 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.4098, allocations: 7.922 kB / 0.7682 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.039e-05/0.4098, allocations: 7.875 kB / 0.7682 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.4101, allocations: 39.95 kB / 0.7683 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.4103, allocations: 103.7 kB / 0.7684 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.4104, allocations: 8.188 kB / 0.7684 GB, free: 2 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.4106, allocations: 55.78 kB / 0.7684 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.4108, allocations: 39.89 kB / 0.7685 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.341e-05/0.4108, allocations: 8 kB / 0.7685 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.435e-05/0.4108, allocations: 8 kB / 0.7685 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.265e-05/0.4109, allocations: 19.91 kB / 0.7685 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.545e-05/0.411, allocations: 43.78 kB / 0.7686 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.4112, allocations: 79.56 kB / 0.7686 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.26e-05/0.4112, allocations: 4 kB / 0.7686 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4112, allocations: 0 / 0.7686 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.4112, allocations: 0 / 0.7686 GB, free: 1.75 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008587/0.4121, allocations: 456.8 kB / 0.7691 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4122, allocations: 12.03 kB / 0.7691 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.4122, allocations: 8.891 kB / 0.7691 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/0.4125, allocations: 184.3 kB / 0.7693 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.4125, allocations: 8.375 kB / 0.7693 GB, free: 1 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.4125, allocations: 4.375 kB / 0.7693 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000432/0.413, allocations: 117.7 kB / 0.7694 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.413, allocations: 0 / 0.7694 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.413, allocations: 8 kB / 0.7694 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.413, allocations: 4 kB / 0.7694 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004769/0.4135, allocations: 83.92 kB / 0.7695 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006652/0.4142, allocations: 340.6 kB / 0.7698 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004381/0.4147, allocations: 110.5 kB / 0.7699 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002553/0.4149, allocations: 76.92 kB / 0.77 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.415, allocations: 0 / 0.77 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004044/0.4154, allocations: 123.3 kB / 0.7701 GB, free: 72 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.4154, allocations: 4 kB / 0.7701 GB, free: 68 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.001046/0.4164, allocations: 275.3 kB / 0.7704 GB, free: 15.78 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.4165, allocations: 85.09 kB / 0.7705 GB, free: 15.68 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.4167, allocations: 137.2 kB / 0.7706 GB, free: 15.54 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.4167, allocations: 29.7 kB / 0.7706 GB, free: 15.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.506e-05/0.4168, allocations: 100.1 kB / 0.7707 GB, free: 15.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.229e-05/0.4168, allocations: 19.84 kB / 0.7707 GB, free: 15.38 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.712e-05/0.4169, allocations: 29.7 kB / 0.7708 GB, free: 15.35 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4171, allocations: 322.8 kB / 0.7711 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/0.4174, allocations: 71.89 kB / 0.7711 GB, free: 14.95 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.4176, allocations: 59.95 kB / 0.7712 GB, free: 14.89 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005017/0.4181, allocations: 193.8 kB / 0.7714 GB, free: 14.68 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4182, allocations: 0 / 0.7714 GB, free: 14.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0007262/0.4189, allocations: 253 kB / 0.7716 GB, free: 14.42 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.331e-05/0.419, allocations: 67.39 kB / 0.7717 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.419, allocations: 0 / 0.7717 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.419, allocations: 0 / 0.7717 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.4192, allocations: 23.92 kB / 0.7717 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.4192, allocations: 0 / 0.7717 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002083/0.4194, allocations: 23.97 kB / 0.7717 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.4194, allocations: 4 kB / 0.7717 GB, free: 14.29 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: 6 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0001526/0.4196, allocations: 157.9 kB / 0.7719 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.4196, allocations: 7.953 kB / 0.7719 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.4197, allocations: 16.45 kB / 0.7719 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4197, allocations: 7.938 kB / 0.7719 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4197, allocations: 0 / 0.7719 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4197, allocations: 0 / 0.7719 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.4199, allocations: 197.5 kB / 0.7721 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.42, allocations: 0 / 0.7721 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.4201, allocations: 11.98 kB / 0.7721 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4201, allocations: 0 / 0.7721 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.4201, allocations: 4 kB / 0.7721 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4201, allocations: 256 / 0.7721 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4201, allocations: 4 kB / 0.7721 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005281/0.4207, allocations: 254.6 kB / 0.7724 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.4207, allocations: 81.06 kB / 0.7724 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.4208, allocations: 11.98 kB / 0.7724 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.4209, allocations: 15.98 kB / 0.7725 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.421, allocations: 39.95 kB / 0.7725 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.4211, allocations: 4 kB / 0.7725 GB, free: 13.39 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.425e-05/0.4211, allocations: 99.27 kB / 0.7726 GB, free: 13.29 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4211, allocations: 0 / 0.7726 GB, free: 13.29 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002114/0.4213, allocations: 31.88 kB / 0.7726 GB, free: 13.26 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: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 9.055e-05/0.4214, allocations: 111.2 kB / 0.7727 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004951/0.4219, allocations: 262.6 kB / 0.773 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.422, allocations: 7.938 kB / 0.773 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.4222, allocations: 135.4 kB / 0.7731 GB, free: 12.71 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.4224, allocations: 22.67 kB / 0.7731 GB, free: 12.69 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005073/0.4229, allocations: 207.2 kB / 0.7733 GB, free: 12.46 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.4232, allocations: 0.6924 MB / 0.774 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.119e-05/0.4232, allocations: 19.67 kB / 0.774 GB, free: 11.72 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.4233, allocations: 11.44 kB / 0.774 GB, free: 11.71 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.4233, allocations: 0 / 0.774 GB, free: 11.71 MB / 0.545 GB Notification: Performance of Templates: time 0.004009/0.4273, allocations: 1.862 MB / 0.7759 GB, free: 9.867 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)