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.0007587/0.0007587, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.0008144/0.0008144, allocations: 209.2 kB / 22.24 MB, free: 3.57 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 0.9412/0.9412, allocations: 230.6 MB / 256 MB, free: 9.594 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.7904/0.7904, allocations: 203.8 MB / 0.5042 GB, free: 10.4 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.0009814/0.0009814, allocations: 62.22 kB / 0.7182 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6432/0.6442, allocations: 102 MB / 0.8178 GB, free: 1.02 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003019/0.6472, allocations: 1.531 MB / 0.8193 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0004705/0.6477, allocations: 131.3 kB / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.697e-05/0.6477, allocations: 0 / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 4.481e-05/0.6478, allocations: 0.6562 kB / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.052e-05/0.6478, allocations: 6.312 kB / 0.8194 GB, free: 15.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003845/0.6482, allocations: 31.45 kB / 0.8195 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.199e-05/0.6483, allocations: 27.48 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.6485, allocations: 12.91 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.997e-05/0.6485, allocations: 15.47 kB / 0.8195 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.641e-05/0.6486, allocations: 10.8 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.6486, allocations: 8.25 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.6487, allocations: 14.56 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.288e-05/0.6488, allocations: 13.47 kB / 0.8196 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.639e-05/0.6488, allocations: 8.953 kB / 0.8196 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.649, allocations: 29.86 kB / 0.8196 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.649, allocations: 0 / 0.8196 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.996e-06/0.649, allocations: 0 / 0.8196 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.649, allocations: 6.812 kB / 0.8196 GB, free: 15.79 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.0006293/0.6497, allocations: 264.8 kB / 0.8199 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 7.787e-05/0.6497, allocations: 13.12 kB / 0.8199 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.6498, allocations: 33.27 kB / 0.8199 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.6498, allocations: 9.5 kB / 0.8199 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.65, allocations: 114.3 kB / 0.82 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.748e-05/0.65, allocations: 3.188 kB / 0.82 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.65, allocations: 384 / 0.82 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.6502, allocations: 63.91 kB / 0.8201 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.6503, allocations: 3.938 kB / 0.8201 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.6503, allocations: 2.969 kB / 0.8201 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.6503, allocations: 0 / 0.8201 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.6504, allocations: 43.05 kB / 0.8201 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.6509, allocations: 228.8 kB / 0.8203 GB, free: 15.04 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.6511, allocations: 60.78 kB / 0.8204 GB, free: 15 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.651e-05/0.6512, allocations: 25.59 kB / 0.8204 GB, free: 14.99 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.6513, allocations: 5.641 kB / 0.8204 GB, free: 14.99 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.6513, allocations: 31.27 kB / 0.8205 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.653e-06/0.6513, allocations: 1.938 kB / 0.8205 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002871/0.6516, allocations: 100.3 kB / 0.8206 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.6517, allocations: 52.48 kB / 0.8206 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.682e-05/0.6518, allocations: 104.7 kB / 0.8207 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.6518, allocations: 27.45 kB / 0.8207 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.034e-05/0.6518, allocations: 84.59 kB / 0.8208 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.6518, allocations: 8.125 kB / 0.8208 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.6519, allocations: 18.08 kB / 0.8208 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0003363/0.6522, allocations: 313.1 kB / 0.8211 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.834e-05/0.6523, allocations: 24.48 kB / 0.8212 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.886e-05/0.6523, allocations: 20.66 kB / 0.8212 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.6524, allocations: 44.98 kB / 0.8212 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6524, allocations: 3.938 kB / 0.8212 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001434/0.6526, allocations: 74.09 kB / 0.8213 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.6526, allocations: 14.02 kB / 0.8213 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.6526, allocations: 0 / 0.8213 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.6526, allocations: 0 / 0.8213 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.213e-05/0.6527, allocations: 15.27 kB / 0.8213 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.6527, allocations: 0.6562 kB / 0.8213 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.029e-05/0.6527, allocations: 11.06 kB / 0.8213 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.6527, allocations: 0.5625 kB / 0.8213 GB, free: 14.19 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 9.555e-05/0.6528, allocations: 116.9 kB / 0.8215 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.6528, allocations: 3.594 kB / 0.8215 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.653, allocations: 81.81 kB / 0.8215 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.653, allocations: 0 / 0.8215 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.653, allocations: 4.25 kB / 0.8215 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.653, allocations: 0 / 0.8215 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.6532, allocations: 132.7 kB / 0.8217 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.6532, allocations: 0.5625 kB / 0.8217 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.266e-05/0.6532, allocations: 20.75 kB / 0.8217 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.6532, allocations: 0 / 0.8217 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.6532, allocations: 0.7969 kB / 0.8217 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.6532, allocations: 4 kB / 0.8217 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6532, allocations: 2.031 kB / 0.8217 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002159/0.6534, allocations: 172.2 kB / 0.8219 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.097e-06/0.6534, allocations: 4.797 kB / 0.8219 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.6535, allocations: 0 / 0.8219 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.213e-05/0.6535, allocations: 8.281 kB / 0.8219 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.038e-05/0.6536, allocations: 9.031 kB / 0.8219 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.6536, allocations: 1.312 kB / 0.8219 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.057e-05/0.6536, allocations: 78.2 kB / 0.822 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-08/0.6536, allocations: 4.594 kB / 0.822 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001643/0.6538, allocations: 17.89 kB / 0.822 GB, free: 13.61 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.0004407/0.6542, allocations: 0.7059 MB / 0.8227 GB, free: 12.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001691/0.6544, allocations: 43.67 kB / 0.8227 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.6544, allocations: 3.844 kB / 0.8227 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.372e-05/0.6544, allocations: 29.83 kB / 0.8227 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.6547, allocations: 9.578 kB / 0.8227 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004364/0.6551, allocations: 150 kB / 0.8229 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.6553, allocations: 62.52 kB / 0.8229 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.219e-05/0.6553, allocations: 4.375 kB / 0.823 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.045e-05/0.6554, allocations: 14.69 kB / 0.823 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of SimCode: time 1.282e-06/0.6554, allocations: 4 kB / 0.823 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/0.6748, allocations: 2.131 MB / 0.8251 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.517/7.192, allocations: 5.281 kB / 0.8251 GB, free: 11.8 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.244470024015754] Failed to read output from testmodel.py, exit status != 0: 7.271683449856937 7.286341887 6.63501953 Calling exit ...