Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",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.001125/0.001125, allocations: 105.4 kB / 15.7 MB, free: 24 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.001143/0.001143, allocations: 194.9 kB / 16.64 MB, free: 6.453 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.258/1.258, allocations: 222.9 MB / 240.3 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001976/0.001976, allocations: 275 kB / 290.8 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.887/0.887, allocations: 169.3 MB / 0.4983 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 94.39 kB / 0.5955 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1545, allocations: 86.99 MB / 0.6805 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002444/0.157, allocations: 1.507 MB / 0.6819 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003052/0.1573, allocations: 120.5 kB / 0.682 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.1573, allocations: 8 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.427e-05/0.1574, allocations: 3.938 kB / 0.6821 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.649e-05/0.1574, allocations: 3.938 kB / 0.6821 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.1576, allocations: 11.98 kB / 0.6821 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.366e-05/0.1577, allocations: 31.91 kB / 0.6821 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.422e-05/0.1578, allocations: 12.27 kB / 0.6821 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.965e-05/0.1578, allocations: 15.94 kB / 0.6821 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.342e-05/0.1579, allocations: 15.92 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1579, allocations: 4 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.26e-05/0.1579, allocations: 15.98 kB / 0.6822 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.275e-05/0.1579, allocations: 4 kB / 0.6822 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.475e-05/0.158, allocations: 19.91 kB / 0.6822 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001/0.1581, allocations: 35.84 kB / 0.6822 GB, free: 14.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1581, allocations: 3.938 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1581, allocations: 4 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.1581, allocations: 0 / 0.6822 GB, free: 14.68 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000415/0.1585, allocations: 339.5 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.1586, allocations: 12.03 kB / 0.6826 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.921e-05/0.1586, allocations: 34.73 kB / 0.6826 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.415e-05/0.1586, allocations: 4.938 kB / 0.6826 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.833e-05/0.1587, allocations: 160.4 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.1588, allocations: 4.375 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-06/0.1588, allocations: 4.375 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.1589, allocations: 54.22 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.159, allocations: 7.938 kB / 0.6828 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.159, allocations: 0 / 0.6828 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.159, allocations: 7.938 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.1592, allocations: 43.89 kB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003158/0.1595, allocations: 276.8 kB / 0.6831 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.1598, allocations: 58.59 kB / 0.6832 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.8e-05/0.1599, allocations: 24.84 kB / 0.6832 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.16, allocations: 85.09 kB / 0.6833 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.1601, allocations: 34.5 kB / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1601, allocations: 0 / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003442/0.1604, allocations: 97.61 kB / 0.6834 GB, free: 13.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.1605, allocations: 59.41 kB / 0.6835 GB, free: 13.19 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.758e-05/0.1605, allocations: 101.8 kB / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1606, allocations: 25.7 kB / 0.6836 GB, free: 13.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.086e-05/0.1606, allocations: 84.12 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.1606, allocations: 7.906 kB / 0.6837 GB, free: 12.95 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.1607, allocations: 17.72 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1608, allocations: 310.8 kB / 0.684 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.892e-05/0.1609, allocations: 27.97 kB / 0.684 GB, free: 12.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.274e-05/0.1609, allocations: 15.98 kB / 0.684 GB, free: 12.57 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.1611, allocations: 56.69 kB / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1611, allocations: 0 / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001922/0.1613, allocations: 65.66 kB / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.1613, allocations: 8 kB / 0.6842 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1613, allocations: 4 kB / 0.6842 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1613, allocations: 0 / 0.6842 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.517e-05/0.1614, allocations: 11.98 kB / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1614, allocations: 0 / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.524e-05/0.1615, allocations: 11.89 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.1615, allocations: 4 kB / 0.6842 GB, free: 12.41 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 (rea2Int.y,fac.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.695e-05/0.1616, allocations: 118.4 kB / 0.6843 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.1616, allocations: 0 / 0.6843 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002433/0.1619, allocations: 81.14 kB / 0.6844 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1619, allocations: 4 kB / 0.6844 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1619, allocations: 0 / 0.6844 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.1619, allocations: 3.984 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001465/0.162, allocations: 165.5 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.162, allocations: 0 / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.777e-05/0.1621, allocations: 11.98 kB / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.1621, allocations: 0 / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.1621, allocations: 4 kB / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1622, allocations: 4 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1622, allocations: 3.984 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.1624, allocations: 172 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.174e-05/0.1624, allocations: 81.02 kB / 0.6848 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.1625, allocations: 0 / 0.6848 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.208e-05/0.1625, allocations: 15.98 kB / 0.6848 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.1626, allocations: 7.984 kB / 0.6848 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.1626, allocations: 4 kB / 0.6848 GB, free: 11.64 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.729e-05/0.1627, allocations: 87.31 kB / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1627, allocations: 0 / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002144/0.1629, allocations: 8 kB / 0.6849 GB, free: 11.55 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 (fac.y,rea2Int.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.0005453/0.1634, allocations: 0.7162 MB / 0.6856 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002245/0.1637, allocations: 39.95 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.1637, allocations: 4 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.205e-05/0.1638, allocations: 27.97 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.1641, allocations: 8 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003898/0.1645, allocations: 155.1 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.1647, allocations: 0.6729 MB / 0.6865 GB, free: 9.832 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.807e-05/0.1647, allocations: 7.984 kB / 0.6865 GB, free: 9.824 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.1647, allocations: 11.44 kB / 0.6865 GB, free: 9.812 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1648, allocations: 0 / 0.6865 GB, free: 9.812 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.1793, allocations: 1.591 MB / 0.6881 GB, free: 8.312 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/7.146, allocations: 7.469 kB / 0.6881 GB, free: 8.309 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)