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.001324/0.001324, allocations: 105.4 kB / 16.45 MB, free: 6.457 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.00132/0.00132, allocations: 199.8 kB / 19.41 MB, free: 3.645 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.436/1.436, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.833/0.833, allocations: 134 MB / 436.6 MB, free: 1.242 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.001866/0.001866, allocations: 72.39 kB / 0.6052 GB, free: 15.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1591, allocations: 84.68 MB / 0.6878 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001663/0.1608, allocations: 0.5819 MB / 0.6884 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002638/0.1611, allocations: 51.84 kB / 0.6885 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.678e-05/0.1611, allocations: 3.938 kB / 0.6885 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.091e-05/0.1611, allocations: 3.938 kB / 0.6885 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.1611, allocations: 0 / 0.6885 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.1613, allocations: 11.98 kB / 0.6885 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 4.654e-05/0.1614, allocations: 0 / 0.6885 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.891e-05/0.1614, allocations: 4 kB / 0.6885 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.471e-05/0.1614, allocations: 0 / 0.6885 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 2.061e-05/0.1614, allocations: 4 kB / 0.6885 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.276e-06/0.1614, allocations: 0 / 0.6885 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.857e-05/0.1615, allocations: 19.92 kB / 0.6885 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.1615, allocations: 3.984 kB / 0.6885 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 1.837e-05/0.1615, allocations: 4 kB / 0.6885 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 7.769e-05/0.1616, allocations: 7.938 kB / 0.6885 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1616, allocations: 0 / 0.6885 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.353e-06/0.1616, allocations: 0 / 0.6885 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.1616, allocations: 0 / 0.6885 GB, free: 10.37 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003452/0.162, allocations: 323.7 kB / 0.6888 GB, free: 10 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.162, allocations: 12.03 kB / 0.6888 GB, free: 9.992 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.164e-05/0.162, allocations: 34.75 kB / 0.6889 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.1621, allocations: 0.9375 kB / 0.6889 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.1622, allocations: 164.4 kB / 0.689 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.012e-06/0.1622, allocations: 384 / 0.689 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.317e-06/0.1622, allocations: 384 / 0.689 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.55e-05/0.1623, allocations: 30.27 kB / 0.6891 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1623, allocations: 3.938 kB / 0.6891 GB, free: 9.711 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-06/0.1623, allocations: 0 / 0.6891 GB, free: 9.711 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.1623, allocations: 4 kB / 0.6891 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.758e-05/0.1623, allocations: 4 kB / 0.6891 GB, free: 9.703 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.1625, allocations: 157.6 kB / 0.6892 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.314e-05/0.1625, allocations: 22.61 kB / 0.6892 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.1626, allocations: 4.859 kB / 0.6893 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001622/0.1627, allocations: 85.16 kB / 0.6893 GB, free: 9.359 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.1628, allocations: 30.97 kB / 0.6894 GB, free: 9.32 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1628, allocations: 0 / 0.6894 GB, free: 9.32 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001452/0.1629, allocations: 57.56 kB / 0.6894 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.1629, allocations: 51.41 kB / 0.6895 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.637e-05/0.163, allocations: 89.86 kB / 0.6896 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.163, allocations: 25.7 kB / 0.6896 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.769e-05/0.163, allocations: 80.14 kB / 0.6897 GB, free: 8.984 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.1631, allocations: 7.953 kB / 0.6897 GB, free: 8.977 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-05/0.1631, allocations: 17.66 kB / 0.6897 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1632, allocations: 310.8 kB / 0.69 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.1632, allocations: 8.125 kB / 0.69 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.827e-06/0.1632, allocations: 3.984 kB / 0.69 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.061e-05/0.1633, allocations: 12.86 kB / 0.69 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1633, allocations: 4 kB / 0.69 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.171e-05/0.1633, allocations: 41.64 kB / 0.69 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.1634, allocations: 4 kB / 0.69 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1634, allocations: 3.938 kB / 0.6901 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.1634, allocations: 0 / 0.6901 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.391e-05/0.1634, allocations: 12.08 kB / 0.6901 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.1634, allocations: 3.938 kB / 0.6901 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.273e-05/0.1634, allocations: 0 / 0.6901 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-06/0.1634, allocations: 0 / 0.6901 GB, free: 8.539 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 (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.518e-05/0.1635, allocations: 109.8 kB / 0.6902 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-06/0.1635, allocations: 0 / 0.6902 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.341e-05/0.1636, allocations: 48.75 kB / 0.6902 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.1636, allocations: 0 / 0.6902 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1636, allocations: 7.969 kB / 0.6902 GB, free: 8.355 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1636, allocations: 0 / 0.6902 GB, free: 8.355 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.1637, allocations: 157.7 kB / 0.6904 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1637, allocations: 0 / 0.6904 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.969e-05/0.1638, allocations: 0 / 0.6904 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1638, allocations: 4 kB / 0.6904 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.1638, allocations: 3.938 kB / 0.6904 GB, free: 8.145 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1638, allocations: 0 / 0.6904 GB, free: 8.145 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.1638, allocations: 0 / 0.6904 GB, free: 8.145 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.98e-05/0.1639, allocations: 73.12 kB / 0.6905 GB, free: 8.055 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.1639, allocations: 77.11 kB / 0.6905 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1639, allocations: 7.938 kB / 0.6905 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.079e-05/0.1639, allocations: 0 / 0.6905 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.164, allocations: 0 / 0.6905 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.164, allocations: 0 / 0.6905 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.295e-05/0.164, allocations: 75.28 kB / 0.6906 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.164, allocations: 0 / 0.6906 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001838/0.1642, allocations: 19.8 kB / 0.6906 GB, free: 7.859 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,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.0004351/0.1646, allocations: 0.6124 MB / 0.6912 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 7.404e-05/0.1647, allocations: 8 kB / 0.6912 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.1647, allocations: 0 / 0.6912 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.731e-05/0.1647, allocations: 8.031 kB / 0.6912 GB, free: 7.199 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.1648, allocations: 12.05 kB / 0.6912 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002972/0.1651, allocations: 118.6 kB / 0.6914 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.1654, allocations: 0.669 MB / 0.692 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.456e-05/0.1654, allocations: 7.984 kB / 0.692 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.706e-05/0.1654, allocations: 7.438 kB / 0.692 GB, free: 6.32 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.1654, allocations: 0 / 0.692 GB, free: 6.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.1869, allocations: 1.05 MB / 0.6931 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/7.896, allocations: 15.95 kB / 0.6931 GB, free: 5.352 MB / 0.5137 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.376355168002192] Failed to read output from testmodel.py, exit status != 0: 7.965119165019132 7.988423923 7.822610536 Calling exit ...