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.005503/0.005503, allocations: 99.39 kB / 15.73 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.001321/0.001321, allocations: 199 kB / 16.68 MB, free: 6.375 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00217/0.00217, allocations: 282.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9138/0.9138, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 100.2 kB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1601, allocations: 86.98 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002245/0.1624, allocations: 1.456 MB / 0.7673 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007051/0.1631, allocations: 470.9 kB / 0.7677 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.377e-05/0.1631, allocations: 0 / 0.7677 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.549e-05/0.1632, allocations: 3.938 kB / 0.7677 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.709e-05/0.1633, allocations: 11.81 kB / 0.7678 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.1635, allocations: 39.95 kB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.1637, allocations: 107.7 kB / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.998e-05/0.1638, allocations: 16.45 kB / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.1639, allocations: 47.89 kB / 0.768 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.611e-05/0.164, allocations: 39.83 kB / 0.768 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.164, allocations: 8 kB / 0.768 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.894e-05/0.164, allocations: 8 kB / 0.768 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.459e-05/0.1641, allocations: 23.91 kB / 0.768 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.384e-05/0.1642, allocations: 39.8 kB / 0.7681 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.1643, allocations: 83.69 kB / 0.7682 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1643, allocations: 4 kB / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1643, allocations: 0 / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.1643, allocations: 0 / 0.7682 GB, free: 6.605 MB / 0.5606 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.0006187/0.1649, allocations: 446.6 kB / 0.7686 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.165, allocations: 12.03 kB / 0.7686 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.931e-05/0.165, allocations: 30.75 kB / 0.7686 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.1651, allocations: 16.84 kB / 0.7686 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.1652, allocations: 194.1 kB / 0.7688 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.1653, allocations: 4.375 kB / 0.7688 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.1653, allocations: 8.375 kB / 0.7688 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.1656, allocations: 129.5 kB / 0.769 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.1656, allocations: 0 / 0.769 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.1656, allocations: 3.984 kB / 0.769 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1656, allocations: 0 / 0.769 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002675/0.1659, allocations: 91.92 kB / 0.7691 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.1664, allocations: 336.6 kB / 0.7694 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.1667, allocations: 110.5 kB / 0.7695 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.1669, allocations: 69.45 kB / 0.7695 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.1669, allocations: 11.88 kB / 0.7696 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002953/0.1672, allocations: 119.3 kB / 0.7697 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.1672, allocations: 0 / 0.7697 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0006691/0.1679, allocations: 271.2 kB / 0.7699 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.1679, allocations: 89.05 kB / 0.77 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.388e-05/0.168, allocations: 131.7 kB / 0.7701 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.1681, allocations: 33.7 kB / 0.7702 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.322e-05/0.1681, allocations: 96.06 kB / 0.7703 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.1682, allocations: 15.81 kB / 0.7703 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.1682, allocations: 33.7 kB / 0.7703 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.194e-05/0.1683, allocations: 322.8 kB / 0.7706 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.1685, allocations: 63.94 kB / 0.7707 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.1687, allocations: 67.95 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.169, allocations: 177.9 kB / 0.7709 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.169, allocations: 4 kB / 0.7709 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004497/0.1694, allocations: 264.8 kB / 0.7712 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.1695, allocations: 59.41 kB / 0.7712 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.1695, allocations: 0 / 0.7712 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.1695, allocations: 0 / 0.7712 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.1696, allocations: 19.97 kB / 0.7712 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1696, allocations: 0 / 0.7712 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.1698, allocations: 27.89 kB / 0.7713 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.1698, allocations: 7.938 kB / 0.7713 GB, free: 3.105 MB / 0.5606 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.0001106/0.1699, allocations: 168.1 kB / 0.7714 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.17, allocations: 7.938 kB / 0.7715 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.895e-05/0.17, allocations: 8.375 kB / 0.7715 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.17, allocations: 4 kB / 0.7715 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.17, allocations: 0 / 0.7715 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.17, allocations: 3.984 kB / 0.7715 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.1702, allocations: 201.5 kB / 0.7717 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1702, allocations: 0 / 0.7717 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.97e-05/0.1702, allocations: 16.22 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1703, allocations: 0 / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.1703, allocations: 12 kB / 0.7717 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1703, allocations: 0 / 0.7717 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1703, allocations: 0 / 0.7717 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004433/0.1707, allocations: 246.6 kB / 0.7719 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.921e-05/0.1708, allocations: 85.02 kB / 0.772 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.381e-05/0.1708, allocations: 7.938 kB / 0.772 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.1709, allocations: 19.97 kB / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.1711, allocations: 35.95 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.1711, allocations: 4 kB / 0.7721 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.555e-05/0.1712, allocations: 103.2 kB / 0.7722 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1712, allocations: 4 kB / 0.7722 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002019/0.1714, allocations: 24 kB / 0.7722 GB, free: 2.066 MB / 0.5606 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.0006922/0.1721, allocations: 0.7741 MB / 0.7729 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004464/0.1725, allocations: 266.6 kB / 0.7732 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1725, allocations: 4 kB / 0.7732 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.1728, allocations: 143.3 kB / 0.7733 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.173, allocations: 15.98 kB / 0.7734 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3189/0.4919, allocations: 1.742 MB / 0.7751 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001295/0.492, allocations: 0.6888 MB / 0.7757 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.608e-05/0.4921, allocations: 9.297 kB / 0.7757 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.399e-05/0.4922, allocations: 24.81 kB / 0.7758 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/0.4922, allocations: 3.844 kB / 0.7758 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.511, allocations: 3.02 MB / 0.7787 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.936, allocations: 16.09 kB / 0.7787 GB, free: 13.07 MB / 0.5606 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)