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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.734/0.734, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 182.7 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 221.3 MB / 441.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000853/0.0008528, allocations: 96.86 kB / 0.5124 GB, free: 24.14 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001786/0.001786, allocations: 282.2 kB / 0.594 GB, free: 7.969 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.482e-05/3.508e-05, allocations: 4 kB / 0.6835 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.4082, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.5199, allocations: 109.5 MB / 0.8713 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.5201, allocations: 71.97 kB / 0.8714 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.004623/0.5248, allocations: 1.535 MB / 0.8729 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.637e-06/0.5248, allocations: 4 kB / 0.8729 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.5248, allocations: 0 / 0.8729 GB, free: 13.44 MB / 0.5417 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.0005092/0.5253, allocations: 441.7 kB / 0.8733 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.5254, allocations: 12.03 kB / 0.8733 GB, free: 12.94 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.08e-05/0.5254, allocations: 42.55 kB / 0.8733 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.5255, allocations: 7.906 kB / 0.8734 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.5257, allocations: 186.9 kB / 0.8735 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.5257, allocations: 4 kB / 0.8735 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.5257, allocations: 12.19 kB / 0.8736 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.5259, allocations: 100.7 kB / 0.8736 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.5259, allocations: 0 / 0.8736 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.526, allocations: 4 kB / 0.8737 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.526, allocations: 4 kB / 0.8737 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001062/0.5261, allocations: 51.98 kB / 0.8737 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005111/0.5266, allocations: 340.7 kB / 0.874 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.5268, allocations: 78.5 kB / 0.8741 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.691e-05/0.5268, allocations: 56.97 kB / 0.8742 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.5269, allocations: 0 / 0.8742 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.5271, allocations: 105.4 kB / 0.8743 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.5271, allocations: 3.938 kB / 0.8743 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0003181/0.5274, allocations: 183.1 kB / 0.8744 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.5274, allocations: 81.11 kB / 0.8745 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.666e-05/0.5275, allocations: 123 kB / 0.8746 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.5276, allocations: 29.7 kB / 0.8747 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.613e-05/0.5276, allocations: 99.97 kB / 0.8748 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.5276, allocations: 11.91 kB / 0.8748 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.5277, allocations: 4 kB / 0.8748 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.095e-05/0.5278, allocations: 322.8 kB / 0.8751 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.395e-05/0.5278, allocations: 47.98 kB / 0.8751 GB, free: 10.9 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.414e-05/0.5279, allocations: 44 kB / 0.8752 GB, free: 10.86 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.88e-05/0.528, allocations: 87.38 kB / 0.8752 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.528, allocations: 4 kB / 0.8753 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002868/0.5283, allocations: 220.9 kB / 0.8755 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.5284, allocations: 67.39 kB / 0.8755 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.5284, allocations: 0 / 0.8755 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.5284, allocations: 0 / 0.8755 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.5285, allocations: 20.05 kB / 0.8755 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.5286, allocations: 4 kB / 0.8756 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.5287, allocations: 39.88 kB / 0.8756 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.5287, allocations: 0 / 0.8756 GB, free: 10.38 MB / 0.5417 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.793e-05/0.5288, allocations: 148 kB / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.5289, allocations: 11.84 kB / 0.8757 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.5289, allocations: 12.61 kB / 0.8758 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.5289, allocations: 4 kB / 0.8758 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5289, allocations: 0 / 0.8758 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.5289, allocations: 4 kB / 0.8758 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.5291, allocations: 197.6 kB / 0.8759 GB, free: 9.953 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.5291, allocations: 3.938 kB / 0.876 GB, free: 9.949 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.493e-05/0.5292, allocations: 15.98 kB / 0.876 GB, free: 9.934 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.5292, allocations: 0 / 0.876 GB, free: 9.934 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.5292, allocations: 4 kB / 0.876 GB, free: 9.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5292, allocations: 4 kB / 0.876 GB, free: 9.926 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.5292, allocations: 0 / 0.876 GB, free: 9.926 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.5295, allocations: 214.6 kB / 0.8762 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.5295, allocations: 77.11 kB / 0.8763 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.5296, allocations: 4 kB / 0.8763 GB, free: 9.594 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.5297, allocations: 27.97 kB / 0.8763 GB, free: 9.566 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.5298, allocations: 35.95 kB / 0.8763 GB, free: 9.531 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.5299, allocations: 8.016 kB / 0.8763 GB, free: 9.523 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.893e-05/0.5299, allocations: 105.1 kB / 0.8764 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5299, allocations: 0 / 0.8764 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001951/0.5301, allocations: 31.84 kB / 0.8765 GB, free: 9.391 MB / 0.5417 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005085/0.5306, allocations: 0.7391 MB / 0.8772 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002747/0.5309, allocations: 234.8 kB / 0.8774 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5309, allocations: 4 kB / 0.8774 GB, free: 8.359 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.5311, allocations: 119.4 kB / 0.8775 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/0.5313, allocations: 11.94 kB / 0.8775 GB, free: 8.219 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004788/0.5317, allocations: 199 kB / 0.8777 GB, free: 7.984 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002011/0.532, allocations: 0.6926 MB / 0.8784 GB, free: 7.266 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.979e-05/0.532, allocations: 16.16 kB / 0.8784 GB, free: 7.246 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.5321, allocations: 19.44 kB / 0.8784 GB, free: 7.227 MB / 0.5417 GB Notification: Performance of SimCode: time 2.184e-06/0.5321, allocations: 0 / 0.8784 GB, free: 7.227 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.5452, allocations: 2.505 MB / 0.8809 GB, free: 4.895 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/0.5455, allocations: 165.5 kB / 0.881 GB, free: 4.676 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/2.104, allocations: 0 / 0.881 GB, free: 4.676 MB / 0.5417 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/linux/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)