Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 108.7 kB / 16.4 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8564/0.8564, allocations: 132.2 MB / 429.4 MB, free: 5.926 MB / 334.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 66.09 kB / 0.5894 GB, free: 24.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1573, allocations: 80.21 MB / 0.6677 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001701/0.1591, allocations: 0.5785 MB / 0.6683 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002475/0.1593, allocations: 51.84 kB / 0.6684 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.604e-05/0.1594, allocations: 0 / 0.6684 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.17e-05/0.1594, allocations: 0 / 0.6684 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.1594, allocations: 0 / 0.6684 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.1596, allocations: 7.938 kB / 0.6684 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.032e-05/0.1597, allocations: 7.938 kB / 0.6684 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.023e-05/0.1597, allocations: 11.98 kB / 0.6684 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.349e-05/0.1597, allocations: 3.984 kB / 0.6684 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.718e-05/0.1597, allocations: 0 / 0.6684 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.436e-06/0.1598, allocations: 0 / 0.6684 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.569e-05/0.1598, allocations: 12 kB / 0.6684 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.1598, allocations: 0 / 0.6684 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.471e-05/0.1599, allocations: 0 / 0.6684 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.105e-05/0.1599, allocations: 15.91 kB / 0.6684 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.16, allocations: 0 / 0.6684 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.16, allocations: 0 / 0.6684 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.16, allocations: 0 / 0.6684 GB, free: 9.094 MB / 0.4981 GB 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.0003363/0.1603, allocations: 323.8 kB / 0.6687 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1604, allocations: 12.03 kB / 0.6687 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.1604, allocations: 34.75 kB / 0.6688 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.496e-05/0.1604, allocations: 0.9375 kB / 0.6688 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.1606, allocations: 164.3 kB / 0.6689 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.1606, allocations: 384 / 0.6689 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-06/0.1606, allocations: 384 / 0.6689 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.018e-05/0.1607, allocations: 38.66 kB / 0.669 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1607, allocations: 7.938 kB / 0.669 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-06/0.1607, allocations: 0 / 0.669 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.1607, allocations: 4 kB / 0.669 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.696e-05/0.1608, allocations: 3.938 kB / 0.669 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.1609, allocations: 153.7 kB / 0.6691 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.584e-05/0.161, allocations: 22.55 kB / 0.6691 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.846e-05/0.161, allocations: 8.922 kB / 0.6692 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001436/0.1612, allocations: 77.11 kB / 0.6692 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.1612, allocations: 46.55 kB / 0.6693 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1612, allocations: 0 / 0.6693 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001291/0.1614, allocations: 37.64 kB / 0.6693 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.1614, allocations: 51.41 kB / 0.6694 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.966e-05/0.1615, allocations: 93.86 kB / 0.6694 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1615, allocations: 25.7 kB / 0.6695 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.1615, allocations: 84.08 kB / 0.6695 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.1615, allocations: 12.08 kB / 0.6696 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.1616, allocations: 17.7 kB / 0.6696 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.1617, allocations: 310.8 kB / 0.6699 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.245e-05/0.1617, allocations: 8 kB / 0.6699 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.773e-06/0.1617, allocations: 0 / 0.6699 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.276e-05/0.1618, allocations: 12.86 kB / 0.6699 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1618, allocations: 3.938 kB / 0.6699 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.982e-05/0.1618, allocations: 41.78 kB / 0.6699 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.1619, allocations: 10.19 kB / 0.6699 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1619, allocations: 3.938 kB / 0.67 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.1619, allocations: 0 / 0.67 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.152e-05/0.1619, allocations: 7.938 kB / 0.67 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.162, allocations: 0 / 0.67 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.284e-05/0.162, allocations: 0 / 0.67 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.162, allocations: 4 kB / 0.67 GB, free: 7.254 MB / 0.4981 GB 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 6.794e-05/0.1621, allocations: 109.8 kB / 0.6701 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.331e-06/0.1621, allocations: 0 / 0.6701 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.506e-05/0.1622, allocations: 48.77 kB / 0.6701 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.1622, allocations: 0 / 0.6701 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.1622, allocations: 0 / 0.6701 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1622, allocations: 3.984 kB / 0.6701 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.1623, allocations: 149.7 kB / 0.6703 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1623, allocations: 0 / 0.6703 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.232e-05/0.1623, allocations: 4 kB / 0.6703 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1623, allocations: 4 kB / 0.6703 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1623, allocations: 3.938 kB / 0.6703 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1624, allocations: 7.953 kB / 0.6703 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1624, allocations: 4 kB / 0.6703 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.288e-05/0.1624, allocations: 57.14 kB / 0.6703 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/0.1625, allocations: 81.11 kB / 0.6704 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.1625, allocations: 11.86 kB / 0.6704 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.1625, allocations: 0 / 0.6704 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.1625, allocations: 0 / 0.6704 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.1626, allocations: 0 / 0.6704 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.947e-05/0.1626, allocations: 83.31 kB / 0.6705 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1626, allocations: 0 / 0.6705 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001759/0.1628, allocations: 7.938 kB / 0.6705 GB, free: 6.582 MB / 0.4981 GB 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.0004414/0.1632, allocations: 0.6123 MB / 0.6711 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.256e-05/0.1633, allocations: 16.02 kB / 0.6711 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1633, allocations: 3.938 kB / 0.6711 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.401e-05/0.1633, allocations: 4 kB / 0.6711 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.1635, allocations: 4 kB / 0.6711 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002715/0.1637, allocations: 110.5 kB / 0.6712 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.164, allocations: 0.6729 MB / 0.6719 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.102e-05/0.164, allocations: 0 / 0.6719 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.178e-05/0.1641, allocations: 15.44 kB / 0.6719 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.1641, allocations: 4.125 kB / 0.6719 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.1854, allocations: 1.048 MB / 0.6729 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/7.904, allocations: 10.17 kB / 0.673 GB, free: 4.078 MB / 0.4981 GB " [Timeout remaining time 652] (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.375542796915397] Failed to read output from testmodel.py, exit status != 0: 7.967917404836044 7.982048658 7.819558253 Calling exit ...