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: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004644/0.004644, allocations: 102 kB / 15.73 MB, free: 6.039 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.00111/0.00111, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002142/0.002142, allocations: 288.1 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.9203/0.9203, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 99.86 kB / 0.6809 GB, free: 7.539 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4081/0.4099, allocations: 86.97 MB / 0.7659 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002584/0.4125, allocations: 1.48 MB / 0.7673 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008133/0.4134, allocations: 468.6 kB / 0.7678 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.203e-05/0.4135, allocations: 0 / 0.7678 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.829e-05/0.4136, allocations: 3.938 kB / 0.7678 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.048e-05/0.4136, allocations: 11.86 kB / 0.7678 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.4139, allocations: 39.89 kB / 0.7678 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.414, allocations: 99.81 kB / 0.7679 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.4142, allocations: 15 kB / 0.7679 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.4143, allocations: 59.75 kB / 0.768 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.424e-05/0.4144, allocations: 35.89 kB / 0.768 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.4145, allocations: 12 kB / 0.768 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.081e-05/0.4145, allocations: 8 kB / 0.768 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/0.4145, allocations: 15.92 kB / 0.768 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.868e-05/0.4146, allocations: 39.8 kB / 0.7681 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.4148, allocations: 75.77 kB / 0.7682 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4148, allocations: 7.984 kB / 0.7682 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.203e-06/0.4148, allocations: 0 / 0.7682 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.4148, allocations: 0 / 0.7682 GB, free: 1.523 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.0006714/0.4155, allocations: 450.5 kB / 0.7686 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.4155, allocations: 15.97 kB / 0.7686 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.251e-05/0.4156, allocations: 30.75 kB / 0.7686 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/0.4156, allocations: 16.84 kB / 0.7686 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.4158, allocations: 196.2 kB / 0.7688 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.4158, allocations: 4.375 kB / 0.7688 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.4158, allocations: 4.375 kB / 0.7688 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.4161, allocations: 121.5 kB / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.4162, allocations: 0 / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.4162, allocations: 0 / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.4162, allocations: 0 / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/0.4165, allocations: 91.92 kB / 0.769 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005213/0.417, allocations: 336.6 kB / 0.7694 GB, free: 124 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.4173, allocations: 106.5 kB / 0.7695 GB, free: 8 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.4175, allocations: 68.94 kB / 0.7695 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.4175, allocations: 0 / 0.7695 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003144/0.4179, allocations: 127.3 kB / 0.7697 GB, free: 15.8 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.4179, allocations: 0 / 0.7697 GB, free: 15.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.000662/0.4185, allocations: 275.3 kB / 0.7699 GB, free: 15.52 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.4186, allocations: 85.11 kB / 0.77 GB, free: 15.42 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.4187, allocations: 129.8 kB / 0.7701 GB, free: 15.28 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.4187, allocations: 33.7 kB / 0.7702 GB, free: 15.24 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.325e-05/0.4188, allocations: 96.03 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.4188, allocations: 19.75 kB / 0.7703 GB, free: 15.12 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.653e-05/0.4189, allocations: 37.72 kB / 0.7703 GB, free: 15.08 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.419, allocations: 322.8 kB / 0.7706 GB, free: 14.76 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.4192, allocations: 67.92 kB / 0.7707 GB, free: 14.69 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.4194, allocations: 72.02 kB / 0.7707 GB, free: 14.62 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.4197, allocations: 181.8 kB / 0.7709 GB, free: 14.42 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4197, allocations: 4.094 kB / 0.7709 GB, free: 14.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004663/0.4202, allocations: 268.8 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.747e-05/0.4202, allocations: 61.91 kB / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.4202, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.4203, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.4204, allocations: 19.97 kB / 0.7713 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.4204, allocations: 4 kB / 0.7713 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.4206, allocations: 19.98 kB / 0.7713 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.4206, allocations: 7.938 kB / 0.7713 GB, free: 14.02 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.0001157/0.4207, allocations: 155.5 kB / 0.7714 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.4207, allocations: 7.906 kB / 0.7714 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.4208, allocations: 8.375 kB / 0.7715 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-06/0.4208, allocations: 4 kB / 0.7715 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.4208, allocations: 0 / 0.7715 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.4208, allocations: 7.969 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.421, allocations: 193.6 kB / 0.7716 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.421, allocations: 0 / 0.7716 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.439e-05/0.4211, allocations: 15.97 kB / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4211, allocations: 0 / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.4211, allocations: 4 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.4211, allocations: 4 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4211, allocations: 3.938 kB / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.4216, allocations: 246.6 kB / 0.7719 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.816e-05/0.4216, allocations: 85.02 kB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.4217, allocations: 4 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.4218, allocations: 19.97 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.422, allocations: 35.95 kB / 0.772 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.422, allocations: 4 kB / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.049e-05/0.4221, allocations: 106.4 kB / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4221, allocations: 4 kB / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002218/0.4223, allocations: 24 kB / 0.7722 GB, free: 13 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 0.0007704/0.4231, allocations: 0.7858 MB / 0.7729 GB, free: 12.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004838/0.4236, allocations: 266.7 kB / 0.7732 GB, free: 11.89 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4236, allocations: 0 / 0.7732 GB, free: 11.89 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.4238, allocations: 143.3 kB / 0.7733 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.4241, allocations: 20.23 kB / 0.7734 GB, free: 11.72 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.4263, allocations: 1.755 MB / 0.7751 GB, free: 9.867 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.4265, allocations: 0.6846 MB / 0.7757 GB, free: 9.156 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.134e-05/0.4266, allocations: 11.98 kB / 0.7757 GB, free: 9.145 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.705e-05/0.4266, allocations: 23.42 kB / 0.7758 GB, free: 9.121 MB / 0.545 GB Notification: Performance of SimCode: time 2.01e-07/0.4266, allocations: 0 / 0.7758 GB, free: 9.121 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.445, allocations: 3.077 MB / 0.7788 GB, free: 6.172 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.134/7.579, allocations: 14.69 kB / 0.7788 GB, free: 6.16 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)