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.001056/0.001056, allocations: 98.92 kB / 16.35 MB, free: 5.824 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.001011/0.001011, allocations: 193.4 kB / 17.29 MB, free: 5.48 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.282/1.282, allocations: 222.9 MB / 241 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.002168/0.002168, allocations: 288.8 kB / 291.4 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.9254/0.9254, allocations: 169.3 MB / 0.4989 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 89.52 kB / 0.5966 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1365, allocations: 86.97 MB / 0.6816 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002342/0.1389, allocations: 1.473 MB / 0.683 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006259/0.1396, allocations: 454.9 kB / 0.6835 GB, free: 5.504 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.902e-05/0.1396, allocations: 0 / 0.6835 GB, free: 5.504 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.027e-05/0.1397, allocations: 11.86 kB / 0.6835 GB, free: 5.492 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.023e-05/0.1397, allocations: 15.88 kB / 0.6835 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000168/0.1399, allocations: 31.95 kB / 0.6835 GB, free: 5.445 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.1401, allocations: 115.7 kB / 0.6836 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.351e-05/0.1402, allocations: 12.17 kB / 0.6836 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.1403, allocations: 47.84 kB / 0.6837 GB, free: 5.273 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.417e-05/0.1404, allocations: 43.83 kB / 0.6837 GB, free: 5.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.1404, allocations: 8 kB / 0.6837 GB, free: 5.223 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.686e-05/0.1404, allocations: 8 kB / 0.6837 GB, free: 5.215 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.92e-05/0.1405, allocations: 15.97 kB / 0.6838 GB, free: 5.199 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.663e-05/0.1405, allocations: 43.78 kB / 0.6838 GB, free: 5.156 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.1406, allocations: 79.7 kB / 0.6839 GB, free: 5.078 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1406, allocations: 3.938 kB / 0.6839 GB, free: 5.074 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1407, allocations: 0 / 0.6839 GB, free: 5.074 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.1407, allocations: 4 kB / 0.6839 GB, free: 5.07 MB / 494.1 MB 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.0005759/0.1412, allocations: 446.7 kB / 0.6843 GB, free: 4.574 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.744e-05/0.1413, allocations: 8.031 kB / 0.6843 GB, free: 4.566 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.1413, allocations: 8.844 kB / 0.6843 GB, free: 4.559 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.1415, allocations: 188.2 kB / 0.6845 GB, free: 4.336 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1415, allocations: 4.375 kB / 0.6845 GB, free: 4.332 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.1415, allocations: 20.34 kB / 0.6845 GB, free: 4.312 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.1418, allocations: 117.7 kB / 0.6846 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.1418, allocations: 0 / 0.6846 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.1419, allocations: 8 kB / 0.6846 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.1419, allocations: 0 / 0.6846 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002853/0.1422, allocations: 87.92 kB / 0.6847 GB, free: 4.098 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004634/0.1426, allocations: 336.6 kB / 0.685 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.1429, allocations: 110.4 kB / 0.6852 GB, free: 3.602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.1431, allocations: 72.94 kB / 0.6852 GB, free: 3.527 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.1431, allocations: 0 / 0.6852 GB, free: 3.527 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.1434, allocations: 123.3 kB / 0.6853 GB, free: 3.395 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.1434, allocations: 0 / 0.6853 GB, free: 3.395 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006395/0.1441, allocations: 275.1 kB / 0.6856 GB, free: 3.113 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.1441, allocations: 89.09 kB / 0.6857 GB, free: 3.008 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.061e-05/0.1442, allocations: 129.8 kB / 0.6858 GB, free: 2.871 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.1442, allocations: 29.7 kB / 0.6858 GB, free: 2.836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.864e-05/0.1443, allocations: 99.98 kB / 0.6859 GB, free: 2.734 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.1443, allocations: 19.8 kB / 0.686 GB, free: 2.715 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.973e-05/0.1444, allocations: 25.72 kB / 0.686 GB, free: 2.684 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.042e-05/0.1445, allocations: 322.8 kB / 0.6863 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.1447, allocations: 67.95 kB / 0.6864 GB, free: 2.293 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.1448, allocations: 63.95 kB / 0.6864 GB, free: 2.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.1452, allocations: 189.9 kB / 0.6866 GB, free: 2.023 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1452, allocations: 0 / 0.6866 GB, free: 2.023 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004652/0.1456, allocations: 253.2 kB / 0.6868 GB, free: 1.758 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.1457, allocations: 70.2 kB / 0.6869 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.1457, allocations: 4 kB / 0.6869 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1457, allocations: 8 kB / 0.6869 GB, free: 1.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.1458, allocations: 11.98 kB / 0.6869 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1459, allocations: 0 / 0.6869 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.146, allocations: 23.88 kB / 0.6869 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.146, allocations: 8.156 kB / 0.687 GB, free: 1.625 MB / 494.1 MB 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.0001054/0.1461, allocations: 159.4 kB / 0.6871 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.1462, allocations: 15.89 kB / 0.6871 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.569e-05/0.1462, allocations: 12.38 kB / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1462, allocations: 0 / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1462, allocations: 0 / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1462, allocations: 0 / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.1464, allocations: 201.5 kB / 0.6873 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1464, allocations: 0 / 0.6873 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.44e-05/0.1465, allocations: 11.98 kB / 0.6873 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.1465, allocations: 0 / 0.6873 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.1465, allocations: 7.938 kB / 0.6873 GB, free: 1.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1465, allocations: 4 kB / 0.6873 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1465, allocations: 3.984 kB / 0.6874 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.147, allocations: 250.5 kB / 0.6876 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.147, allocations: 85 kB / 0.6877 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.147, allocations: 8 kB / 0.6877 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.1472, allocations: 19.98 kB / 0.6877 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.1473, allocations: 35.95 kB / 0.6877 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1473, allocations: 8 kB / 0.6877 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.124e-05/0.1474, allocations: 97.66 kB / 0.6878 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1474, allocations: 0 / 0.6878 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.1476, allocations: 27.94 kB / 0.6879 GB, free: 0.5898 MB / 494.1 MB 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 7.861e-05/0.1477, allocations: 103.2 kB / 0.688 GB, free: 492 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004511/0.1481, allocations: 270.6 kB / 0.6882 GB, free: 196 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1481, allocations: 0 / 0.6882 GB, free: 196 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.1484, allocations: 135.4 kB / 0.6883 GB, free: 48 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.1486, allocations: 19.92 kB / 0.6884 GB, free: 28 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.228/0.3766, allocations: 209.4 kB / 0.6886 GB, free: 18.94 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.742e-05/0.3768, allocations: 0.6938 MB / 0.6892 GB, free: 18.24 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.155e-05/0.3768, allocations: 9.281 kB / 0.6893 GB, free: 18.24 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.3769, allocations: 15.56 kB / 0.6893 GB, free: 18.24 MB / 494.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3769, allocations: 0 / 0.6893 GB, free: 18.24 MB / 494.1 MB Notification: Performance of Templates: time 0.004284/0.3812, allocations: 1.856 MB / 0.6911 GB, free: 18.2 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)