Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.001279/0.001279, allocations: 105.9 kB / 18.93 MB, free: 1.27 MB / 13.93 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.001512/0.001512, allocations: 218.2 kB / 22.25 MB, free: 3.703 MB / 13.93 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.041/1.041, allocations: 230.6 MB / 256 MB, free: 9.805 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8301/0.8301, allocations: 203.8 MB / 0.5042 GB, free: 10.75 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_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.0009392/0.0009392, allocations: 66.91 kB / 0.7182 GB, free: 4.336 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5696/0.5705, allocations: 102 MB / 0.8179 GB, free: 1.242 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002132/0.5727, allocations: 1.548 MB / 0.8194 GB, free: 168 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000339/0.573, allocations: 127.7 kB / 0.8195 GB, free: 84 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.133e-05/0.5731, allocations: 0 / 0.8195 GB, free: 84 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.793e-05/0.5731, allocations: 8.484 kB / 0.8195 GB, free: 80 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.333e-05/0.5731, allocations: 3.938 kB / 0.8195 GB, free: 76 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.5734, allocations: 24.98 kB / 0.8195 GB, free: 60 kB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.612e-05/0.5735, allocations: 33.53 kB / 0.8196 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.5736, allocations: 13.77 kB / 0.8196 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.938e-05/0.5736, allocations: 7.844 kB / 0.8196 GB, free: 36 kB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.244e-05/0.5737, allocations: 20.44 kB / 0.8196 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.5737, allocations: 3 kB / 0.8196 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.664e-05/0.5737, allocations: 17.69 kB / 0.8196 GB, free: 16 kB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.5738, allocations: 6.656 kB / 0.8196 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.569e-05/0.5738, allocations: 13.69 kB / 0.8196 GB, free: 4 kB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.5739, allocations: 34.03 kB / 0.8197 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.5739, allocations: 3.938 kB / 0.8197 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5739, allocations: 0 / 0.8197 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.5739, allocations: 0 / 0.8197 GB, free: 15.98 MB / 0.6198 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.0003968/0.5743, allocations: 266.8 kB / 0.8199 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.5744, allocations: 8.875 kB / 0.8199 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.338e-05/0.5744, allocations: 45.86 kB / 0.82 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.5745, allocations: 4.891 kB / 0.82 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.676e-05/0.5745, allocations: 111.3 kB / 0.8201 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.5746, allocations: 5.25 kB / 0.8201 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.5746, allocations: 1.719 kB / 0.8201 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.5747, allocations: 60.12 kB / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.5748, allocations: 3.938 kB / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.5748, allocations: 0 / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.5748, allocations: 2.156 kB / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.5749, allocations: 44.81 kB / 0.8202 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000427/0.5753, allocations: 236.1 kB / 0.8204 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.5756, allocations: 55.42 kB / 0.8205 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.652e-05/0.5757, allocations: 29.42 kB / 0.8205 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001141/0.5758, allocations: 4.062 kB / 0.8205 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.5758, allocations: 37.06 kB / 0.8206 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.913e-06/0.5758, allocations: 0 / 0.8206 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003304/0.5761, allocations: 96.47 kB / 0.8207 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.5762, allocations: 51.92 kB / 0.8207 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.121e-05/0.5763, allocations: 106.3 kB / 0.8208 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.5763, allocations: 25.7 kB / 0.8208 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.848e-05/0.5764, allocations: 87.02 kB / 0.8209 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.5764, allocations: 4.469 kB / 0.8209 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/0.5764, allocations: 18.86 kB / 0.8209 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.5765, allocations: 314.7 kB / 0.8212 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.948e-05/0.5766, allocations: 20.72 kB / 0.8213 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.96e-05/0.5767, allocations: 21.89 kB / 0.8213 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.5768, allocations: 51.17 kB / 0.8213 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.5768, allocations: 0 / 0.8213 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001584/0.5769, allocations: 74.66 kB / 0.8214 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.577, allocations: 5.641 kB / 0.8214 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.577, allocations: 48 / 0.8214 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.577, allocations: 4.594 kB / 0.8214 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.839e-05/0.5771, allocations: 14.55 kB / 0.8214 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.5771, allocations: 3.984 kB / 0.8214 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.218e-05/0.5771, allocations: 11.97 kB / 0.8214 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.5771, allocations: 0.7969 kB / 0.8214 GB, free: 14.39 MB / 0.6198 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 8.093e-05/0.5772, allocations: 118.1 kB / 0.8215 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.5772, allocations: 7.875 kB / 0.8216 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.5774, allocations: 86.28 kB / 0.8216 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.5774, allocations: 0.6094 kB / 0.8216 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5774, allocations: 0.7188 kB / 0.8216 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.5774, allocations: 2.75 kB / 0.8216 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.5775, allocations: 139.4 kB / 0.8218 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.5775, allocations: 0 / 0.8218 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.887e-05/0.5776, allocations: 9.109 kB / 0.8218 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.5776, allocations: 0 / 0.8218 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.5776, allocations: 2.234 kB / 0.8218 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.5776, allocations: 0 / 0.8218 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5776, allocations: 4.516 kB / 0.8218 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001594/0.5778, allocations: 173.1 kB / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.808e-06/0.5778, allocations: 7.391 kB / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.5778, allocations: 0.5156 kB / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.012e-05/0.5778, allocations: 6.172 kB / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.5779, allocations: 14.12 kB / 0.822 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.5779, allocations: 4.562 kB / 0.822 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.086e-05/0.5779, allocations: 80.64 kB / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5779, allocations: 0 / 0.8221 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001566/0.5781, allocations: 14.72 kB / 0.8221 GB, free: 13.8 MB / 0.6198 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.0004604/0.5785, allocations: 0.7044 MB / 0.8228 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001771/0.5787, allocations: 46.62 kB / 0.8228 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5787, allocations: 0 / 0.8228 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.009e-05/0.5788, allocations: 24.75 kB / 0.8228 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.579, allocations: 3.391 kB / 0.8228 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004238/0.5795, allocations: 157.2 kB / 0.823 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.5797, allocations: 0.6805 MB / 0.8236 GB, free: 12.25 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.301e-05/0.5797, allocations: 0 / 0.8236 GB, free: 12.25 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.5797, allocations: 11.41 kB / 0.8237 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of SimCode: time 1.112e-06/0.5797, allocations: 3.938 kB / 0.8237 GB, free: 12.24 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.5982, allocations: 1.718 MB / 0.8253 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.517/7.116, allocations: 3.844 kB / 0.8253 GB, free: 11.79 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.336656039115041] Failed to read output from testmodel.py, exit status != 0: 7.193897711811587 7.20966708 6.633557602 Calling exit ...