Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 116.7 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 209.6 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.59/1.59, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.8424/0.8424, allocations: 133.9 MB / 443.5 MB, free: 13.81 MB / 350.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 67.7 kB / 0.6141 GB, free: 38.27 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1537, allocations: 85.85 MB / 0.6979 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002923/0.1567, allocations: 1.54 MB / 0.6994 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003909/0.1571, allocations: 125.5 kB / 0.6996 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.186e-05/0.1571, allocations: 1.375 kB / 0.6996 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.658e-05/0.1571, allocations: 3.938 kB / 0.6996 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.099e-05/0.1572, allocations: 3.938 kB / 0.6996 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.1574, allocations: 22.84 kB / 0.6996 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.992e-05/0.1575, allocations: 32.3 kB / 0.6996 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.1576, allocations: 10.73 kB / 0.6996 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.886e-05/0.1577, allocations: 8.062 kB / 0.6996 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.1577, allocations: 25.41 kB / 0.6997 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.1577, allocations: 2.75 kB / 0.6997 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 7.604e-05/0.1578, allocations: 14.86 kB / 0.6997 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.1578, allocations: 5.375 kB / 0.6997 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.1579, allocations: 14.67 kB / 0.6997 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.158, allocations: 32.14 kB / 0.6997 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.158, allocations: 1.375 kB / 0.6997 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.723e-06/0.158, allocations: 3.938 kB / 0.6997 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.158, allocations: 0 / 0.6997 GB, free: 12.27 MB / 0.5137 GB 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.0007982/0.1588, allocations: 354 kB / 0.7001 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.1588, allocations: 11.3 kB / 0.7001 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.248e-05/0.1588, allocations: 192 / 0.7001 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.741e-05/0.1589, allocations: 36.12 kB / 0.7001 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.91e-05/0.159, allocations: 6.266 kB / 0.7001 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.1591, allocations: 161.8 kB / 0.7003 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.1591, allocations: 1.75 kB / 0.7003 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.1591, allocations: 1.75 kB / 0.7003 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.1593, allocations: 73.03 kB / 0.7004 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.1594, allocations: 0 / 0.7004 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.1594, allocations: 1.375 kB / 0.7004 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1594, allocations: 3.938 kB / 0.7004 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000207/0.1596, allocations: 45.89 kB / 0.7004 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004872/0.1601, allocations: 258.7 kB / 0.7007 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.1604, allocations: 61 kB / 0.7007 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.898e-05/0.1605, allocations: 24.36 kB / 0.7007 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.1606, allocations: 83.36 kB / 0.7008 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.1607, allocations: 35.66 kB / 0.7008 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1607, allocations: 0 / 0.7008 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0004073/0.1611, allocations: 98.17 kB / 0.7009 GB, free: 11 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.1611, allocations: 51.41 kB / 0.701 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.13e-05/0.1612, allocations: 104.4 kB / 0.7011 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.1612, allocations: 25.7 kB / 0.7011 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.834e-05/0.1613, allocations: 85.73 kB / 0.7012 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.1613, allocations: 5.391 kB / 0.7012 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.1613, allocations: 13.38 kB / 0.7012 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1615, allocations: 326.8 kB / 0.7015 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.629e-05/0.1616, allocations: 18.67 kB / 0.7015 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.063e-05/0.1617, allocations: 26.72 kB / 0.7016 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.1619, allocations: 46.97 kB / 0.7016 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1619, allocations: 0 / 0.7016 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002301/0.1621, allocations: 77.03 kB / 0.7017 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1621, allocations: 10.7 kB / 0.7017 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1621, allocations: 0 / 0.7017 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1621, allocations: 0 / 0.7017 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.073e-05/0.1622, allocations: 11.98 kB / 0.7017 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1622, allocations: 0 / 0.7017 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.77e-05/0.1623, allocations: 8.359 kB / 0.7017 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.1623, allocations: 1.125 kB / 0.7017 GB, free: 10.25 MB / 0.5137 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 (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 0.0001055/0.1624, allocations: 120.6 kB / 0.7018 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.1624, allocations: 5.141 kB / 0.7018 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002791/0.1627, allocations: 87.08 kB / 0.7019 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.1627, allocations: 3.938 kB / 0.7019 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1627, allocations: 1.094 kB / 0.7019 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1627, allocations: 0 / 0.7019 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.163, allocations: 164.5 kB / 0.7021 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.163, allocations: 0 / 0.7021 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.187e-05/0.163, allocations: 12.5 kB / 0.7021 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.163, allocations: 3.984 kB / 0.7021 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.163, allocations: 0 / 0.7021 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.163, allocations: 1.688 kB / 0.7021 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.163, allocations: 0 / 0.7021 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002828/0.1633, allocations: 174.3 kB / 0.7023 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.1634, allocations: 90.5 kB / 0.7024 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.1634, allocations: 3.984 kB / 0.7024 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.121e-05/0.1635, allocations: 4.375 kB / 0.7024 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/0.1635, allocations: 10.58 kB / 0.7024 GB, free: 9.551 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-06/0.1635, allocations: 1.312 kB / 0.7024 GB, free: 9.551 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.482e-05/0.1636, allocations: 77.62 kB / 0.7024 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6e-08/0.1636, allocations: 1.281 kB / 0.7024 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002191/0.1638, allocations: 7.062 kB / 0.7025 GB, free: 9.477 MB / 0.5137 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.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.0006754/0.1645, allocations: 0.7147 MB / 0.7032 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002515/0.1647, allocations: 44.72 kB / 0.7032 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1647, allocations: 5.406 kB / 0.7032 GB, free: 8.754 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.1648, allocations: 21.83 kB / 0.7032 GB, free: 8.746 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.1651, allocations: 12.31 kB / 0.7032 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005243/0.1657, allocations: 146 kB / 0.7034 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.1661, allocations: 0.6809 MB / 0.704 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.328e-05/0.1661, allocations: 6.938 kB / 0.704 GB, free: 7.875 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.849e-05/0.1662, allocations: 13.81 kB / 0.7041 GB, free: 7.863 MB / 0.5137 GB Notification: Performance of SimCode: time 4.9e-07/0.1662, allocations: 0 / 0.7041 GB, free: 7.863 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.1857, allocations: 1.602 MB / 0.7056 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.3/8.486, allocations: 19.8 kB / 0.7056 GB, free: 6.688 MB / 0.5137 GB " [Timeout remaining time 651] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.317665938986465] Failed to read output from testmodel.py, exit status != 0: 8.873117754992563 8.638409149 8.476433017 Calling exit ...