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.001375/0.001375, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001777/0.001777, allocations: 215.9 kB / 22.26 MB, free: 5.117 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.559/1.559, allocations: 230.6 MB / 256 MB, free: 8.016 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.904/0.904, allocations: 134 MB / 446.4 MB, free: 10.27 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",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.00198/0.00198, allocations: 66.36 kB / 0.6186 GB, free: 7.223 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1636, allocations: 85.9 MB / 0.7024 GB, free: 1.395 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003482/0.1671, allocations: 1.542 MB / 0.7039 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003849/0.1675, allocations: 128.5 kB / 0.7041 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.698e-05/0.1676, allocations: 0 / 0.7041 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.459e-05/0.1676, allocations: 0 / 0.7041 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.301e-05/0.1676, allocations: 3.938 kB / 0.7041 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002338/0.1679, allocations: 23.92 kB / 0.7041 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.981e-05/0.1679, allocations: 31.92 kB / 0.7041 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.575e-05/0.168, allocations: 11.98 kB / 0.7041 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.599e-05/0.1681, allocations: 15.92 kB / 0.7042 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.603e-05/0.1682, allocations: 15.92 kB / 0.7042 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.1682, allocations: 4 kB / 0.7042 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.603e-05/0.1682, allocations: 15.98 kB / 0.7042 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.506e-05/0.1683, allocations: 8 kB / 0.7042 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.847e-05/0.1683, allocations: 7.938 kB / 0.7042 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.1684, allocations: 44.09 kB / 0.7042 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1684, allocations: 3.938 kB / 0.7043 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.114e-06/0.1684, allocations: 0 / 0.7043 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.1684, allocations: 0 / 0.7043 GB, free: 15.53 MB / 0.5294 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.0005031/0.1689, allocations: 268.7 kB / 0.7045 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.169, allocations: 8.031 kB / 0.7045 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.638e-05/0.169, allocations: 42.75 kB / 0.7046 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.1691, allocations: 8.875 kB / 0.7046 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.1692, allocations: 106.5 kB / 0.7047 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.1692, allocations: 384 / 0.7047 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.278e-06/0.1692, allocations: 384 / 0.7047 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.1694, allocations: 62.17 kB / 0.7047 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1694, allocations: 3.938 kB / 0.7047 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.1694, allocations: 4 kB / 0.7047 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1694, allocations: 0 / 0.7047 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.1696, allocations: 47.95 kB / 0.7048 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004013/0.17, allocations: 232 kB / 0.705 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.1704, allocations: 58.48 kB / 0.7051 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.1705, allocations: 32.89 kB / 0.7051 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 9.041e-05/0.1706, allocations: 7.938 kB / 0.7051 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.1706, allocations: 30.56 kB / 0.7051 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1706, allocations: 0 / 0.7051 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003801/0.171, allocations: 93.58 kB / 0.7052 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.171, allocations: 55.41 kB / 0.7053 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.933e-05/0.1711, allocations: 105.8 kB / 0.7054 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.1711, allocations: 29.7 kB / 0.7054 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.1712, allocations: 84.14 kB / 0.7055 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.1712, allocations: 3.953 kB / 0.7055 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.1712, allocations: 21.7 kB / 0.7055 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1714, allocations: 310.8 kB / 0.7058 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.1714, allocations: 19.98 kB / 0.7058 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.666e-05/0.1715, allocations: 23.97 kB / 0.7058 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.1717, allocations: 45.23 kB / 0.7059 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1717, allocations: 0 / 0.7059 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002327/0.1719, allocations: 77.69 kB / 0.706 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1719, allocations: 4 kB / 0.706 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.1719, allocations: 7.922 kB / 0.706 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.172, allocations: 4 kB / 0.706 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.078e-05/0.172, allocations: 11.98 kB / 0.706 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.172, allocations: 0 / 0.706 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.11e-05/0.1721, allocations: 11.89 kB / 0.706 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.1721, allocations: 7.984 kB / 0.706 GB, free: 13.54 MB / 0.5294 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 9.061e-05/0.1722, allocations: 113.8 kB / 0.7061 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.1722, allocations: 3.938 kB / 0.7061 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002576/0.1725, allocations: 85.33 kB / 0.7062 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1725, allocations: 0 / 0.7062 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1725, allocations: 0 / 0.7062 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1725, allocations: 0 / 0.7062 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.1727, allocations: 144.7 kB / 0.7063 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1727, allocations: 0 / 0.7063 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.749e-05/0.1728, allocations: 15.92 kB / 0.7063 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1728, allocations: 0 / 0.7063 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.1728, allocations: 0 / 0.7063 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1728, allocations: 3.938 kB / 0.7064 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1728, allocations: 4 kB / 0.7064 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.173, allocations: 175.4 kB / 0.7065 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.211e-05/0.1731, allocations: 11.95 kB / 0.7065 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.1731, allocations: 0 / 0.7065 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.126e-05/0.1732, allocations: 4 kB / 0.7065 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/0.1732, allocations: 11.98 kB / 0.7065 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.1732, allocations: 4 kB / 0.7066 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.791e-05/0.1733, allocations: 79.27 kB / 0.7066 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1733, allocations: 4 kB / 0.7066 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002272/0.1735, allocations: 8 kB / 0.7066 GB, free: 12.81 MB / 0.5294 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.0006546/0.1741, allocations: 0.7045 MB / 0.7073 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002312/0.1744, allocations: 47.95 kB / 0.7074 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1744, allocations: 0 / 0.7074 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.1745, allocations: 23.92 kB / 0.7074 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.1748, allocations: 7.984 kB / 0.7074 GB, free: 12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004844/0.1753, allocations: 139.7 kB / 0.7075 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1756, allocations: 0.6844 MB / 0.7082 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 2.819e-05/0.1756, allocations: 0 / 0.7082 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.391e-05/0.1757, allocations: 15.42 kB / 0.7082 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of SimCode: time 3.91e-07/0.1757, allocations: 0 / 0.7082 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.2043, allocations: 1.712 MB / 0.7099 GB, free: 9.516 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11, allocations: 4.438 kB / 0.7099 GB, free: 9.516 MB / 0.5294 GB " [Timeout remaining time 649] (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 sys.exit(0), Time elapsed: 14.752513421000913] Failed to read output from testmodel.py, exit status != 0: 11.104322937084362 11.122286728 10.950427772 Calling exit ...