Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.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.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",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.001344/0.001344, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002119/0.002119, allocations: 283.1 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.945/0.945, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 97.41 kB / 0.5953 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1363, allocations: 86.99 MB / 0.6803 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002665/0.139, allocations: 1.515 MB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004274/0.1394, allocations: 176.3 kB / 0.6819 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.267e-05/0.1395, allocations: 0.6562 kB / 0.6819 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.638e-05/0.1395, allocations: 3.938 kB / 0.6819 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.993e-05/0.1396, allocations: 9.656 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002992/0.1399, allocations: 55.88 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.095e-05/0.1399, allocations: 27.92 kB / 0.682 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.84e-05/0.14, allocations: 20.97 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.862e-05/0.1401, allocations: 12.81 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.354e-05/0.1401, allocations: 23.91 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.1401, allocations: 4.625 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.1402, allocations: 43.95 kB / 0.6821 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.421e-05/0.1403, allocations: 5.5 kB / 0.6821 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.881e-05/0.1403, allocations: 23.86 kB / 0.6822 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.1404, allocations: 67.78 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1405, allocations: 0 / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1405, allocations: 0.5625 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1405, allocations: 4 kB / 0.6822 GB, free: 14.57 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004195/0.1409, allocations: 351.5 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.1409, allocations: 8.031 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.141, allocations: 42.67 kB / 0.6826 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.343e-05/0.141, allocations: 0.9375 kB / 0.6826 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.1411, allocations: 176.2 kB / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.1411, allocations: 384 / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.1412, allocations: 8.375 kB / 0.6828 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/0.1413, allocations: 70.22 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1414, allocations: 7.875 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1414, allocations: 0 / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.1414, allocations: 0 / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.1416, allocations: 47.94 kB / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003317/0.1419, allocations: 280.8 kB / 0.6832 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.1422, allocations: 58.53 kB / 0.6832 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.381e-05/0.1423, allocations: 24.91 kB / 0.6833 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002027/0.1425, allocations: 166.2 kB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.1426, allocations: 38.48 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.1426, allocations: 4 kB / 0.6835 GB, free: 13.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003766/0.143, allocations: 93.55 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.143, allocations: 51.41 kB / 0.6836 GB, free: 12.94 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.548e-05/0.1431, allocations: 117.8 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1431, allocations: 25.7 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.118e-05/0.1431, allocations: 88.12 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.372e-05/0.1432, allocations: 11.91 kB / 0.6838 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.1432, allocations: 17.72 kB / 0.6838 GB, free: 12.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.978e-05/0.1433, allocations: 318.8 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.249e-05/0.1434, allocations: 19.98 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.006e-05/0.1435, allocations: 15.98 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.1437, allocations: 48.75 kB / 0.6842 GB, free: 12.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1437, allocations: 4 kB / 0.6842 GB, free: 12.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002157/0.1439, allocations: 77.56 kB / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1439, allocations: 6.031 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1439, allocations: 4.312 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1439, allocations: 0 / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.892e-05/0.144, allocations: 8 kB / 0.6843 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.144, allocations: 3.984 kB / 0.6843 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.665e-05/0.1441, allocations: 4 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.1441, allocations: 4 kB / 0.6843 GB, free: 12.14 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: 2 (bin.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 6.791e-05/0.1442, allocations: 122.4 kB / 0.6845 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-05/0.1442, allocations: 7.984 kB / 0.6845 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002514/0.1445, allocations: 81.48 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1445, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1445, allocations: 3.938 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1445, allocations: 8 kB / 0.6846 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.1447, allocations: 169.5 kB / 0.6847 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1447, allocations: 4 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.316e-05/0.1448, allocations: 7.984 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1448, allocations: 4 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.1448, allocations: 0 / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.1448, allocations: 4 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1448, allocations: 0 / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002553/0.1451, allocations: 187.3 kB / 0.6849 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.101e-05/0.1451, allocations: 77.11 kB / 0.685 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.1451, allocations: 4 kB / 0.685 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.189e-05/0.1452, allocations: 3.984 kB / 0.685 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.1453, allocations: 8 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.1453, allocations: 0 / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.963e-05/0.1453, allocations: 87.27 kB / 0.6851 GB, free: 11.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1453, allocations: 0 / 0.6851 GB, free: 11.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002364/0.1456, allocations: 20 kB / 0.6851 GB, free: 11.25 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: 2 (rea2Int.y,bin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000542/0.1461, allocations: 0.7396 MB / 0.6858 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002182/0.1463, allocations: 43.95 kB / 0.6859 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1464, allocations: 0 / 0.6859 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.716e-05/0.1465, allocations: 23.98 kB / 0.6859 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.1467, allocations: 11.98 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.148, allocations: 1.284 MB / 0.6872 GB, free: 9.047 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.1482, allocations: 0.681 MB / 0.6878 GB, free: 8.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.978e-05/0.1483, allocations: 4 kB / 0.6878 GB, free: 8.336 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.1483, allocations: 15.42 kB / 0.6878 GB, free: 8.32 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1483, allocations: 4 kB / 0.6878 GB, free: 8.316 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2693/0.4176, allocations: 1.907 MB / 0.6897 GB, free: 6.48 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/8.194, allocations: 8.047 kB / 0.6897 GB, free: 6.477 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)