Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 108 kB / 15.61 MB, free: 152 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.001183/0.001183, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002077/0.002077, allocations: 275.2 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.955/0.955, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001695, allocations: 93.39 kB / 0.5952 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1583, allocations: 86.99 MB / 0.6802 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001792/0.1602, allocations: 0.5839 MB / 0.6808 GB, free: 92 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002436/0.1604, allocations: 47.86 kB / 0.6808 GB, free: 44 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.507e-05/0.1605, allocations: 0 / 0.6808 GB, free: 44 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.376e-05/0.1605, allocations: 3.938 kB / 0.6808 GB, free: 40 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.1605, allocations: 0 / 0.6808 GB, free: 40 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.1607, allocations: 10.78 kB / 0.6808 GB, free: 32 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 4.663e-05/0.1608, allocations: 7.938 kB / 0.6808 GB, free: 24 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.033e-05/0.1608, allocations: 7.984 kB / 0.6808 GB, free: 16 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.488e-05/0.1609, allocations: 3.984 kB / 0.6808 GB, free: 12 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.034e-05/0.1609, allocations: 4 kB / 0.6808 GB, free: 8 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.298e-06/0.1609, allocations: 0 / 0.6808 GB, free: 8 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.007e-05/0.161, allocations: 8 kB / 0.6808 GB, free: 0 / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.206e-06/0.161, allocations: 0 / 0.6808 GB, free: 0 / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.837e-05/0.161, allocations: 0.7812 kB / 0.6808 GB, free: 0 / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.1611, allocations: 20.03 kB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1612, allocations: 1.719 kB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1612, allocations: 0 / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1612, allocations: 4 kB / 0.6809 GB, free: 15.97 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003/0.1615, allocations: 311.6 kB / 0.6812 GB, free: 15.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1615, allocations: 8.688 kB / 0.6812 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.113e-05/0.1616, allocations: 1.5 kB / 0.6812 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.833e-05/0.1617, allocations: 164.3 kB / 0.6813 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.1617, allocations: 1.25 kB / 0.6813 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.1617, allocations: 4.375 kB / 0.6813 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.1618, allocations: 34.78 kB / 0.6814 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1618, allocations: 5.25 kB / 0.6814 GB, free: 15.36 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.1618, allocations: 3.938 kB / 0.6814 GB, free: 15.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1618, allocations: 1 kB / 0.6814 GB, free: 15.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.155e-05/0.1619, allocations: 4 kB / 0.6814 GB, free: 15.36 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.162, allocations: 149.7 kB / 0.6815 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.732e-05/0.1621, allocations: 26.53 kB / 0.6816 GB, free: 15.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.884e-05/0.1621, allocations: 8.922 kB / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/0.1623, allocations: 81.11 kB / 0.6816 GB, free: 15.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.1623, allocations: 34.56 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 2.785e-06/0.1623, allocations: 3.984 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001498/0.1625, allocations: 49.66 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.1625, allocations: 51.41 kB / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.709e-05/0.1626, allocations: 97.8 kB / 0.6819 GB, free: 14.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.1626, allocations: 29.7 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.634e-05/0.1626, allocations: 80.14 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.1627, allocations: 8.125 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.949e-05/0.1627, allocations: 17.7 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1628, allocations: 310.8 kB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.483e-05/0.1628, allocations: 8.031 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-06/0.1629, allocations: 4 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.84e-05/0.1629, allocations: 8.859 kB / 0.6823 GB, free: 14.26 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1629, allocations: 0 / 0.6823 GB, free: 14.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.689e-05/0.163, allocations: 45.62 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.163, allocations: 4 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.163, allocations: 0 / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.163, allocations: 7.938 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.257e-05/0.1631, allocations: 3.938 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.1631, allocations: 4.094 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.534e-05/0.1631, allocations: 4 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-06/0.1631, allocations: 0 / 0.6824 GB, free: 14.19 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.221e-05/0.1632, allocations: 107.2 kB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.736e-06/0.1632, allocations: 3.984 kB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.537e-05/0.1633, allocations: 44.77 kB / 0.6825 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1633, allocations: 0 / 0.6825 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1633, allocations: 0 / 0.6825 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1633, allocations: 8.031 kB / 0.6825 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.65e-05/0.1634, allocations: 149.7 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1634, allocations: 4 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.649e-05/0.1635, allocations: 4 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1635, allocations: 3.938 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.1635, allocations: 3.938 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1635, allocations: 0 / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.1635, allocations: 3.984 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.619e-05/0.1636, allocations: 65.14 kB / 0.6828 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.53e-05/0.1637, allocations: 77.11 kB / 0.6828 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1637, allocations: 7.922 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.005e-05/0.1637, allocations: 0 / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.255e-05/0.1637, allocations: 0 / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.1637, allocations: 4 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.208e-05/0.1638, allocations: 75.28 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1638, allocations: 0 / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001799/0.1639, allocations: 4 kB / 0.6829 GB, free: 13.53 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001458/0.1641, allocations: 111.2 kB / 0.683 GB, free: 13.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.409e-05/0.1642, allocations: 15.92 kB / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1642, allocations: 0 / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.323e-05/0.1642, allocations: 7.938 kB / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.1643, allocations: 0 / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001758/0.1645, allocations: 88.94 kB / 0.6831 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.1647, allocations: 0.6769 MB / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.129e-05/0.1647, allocations: 0 / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.37e-05/0.1648, allocations: 11.44 kB / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1648, allocations: 0 / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of Templates: time 0.002206/0.167, allocations: 320.5 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)