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.0009281/0.0009281, allocations: 109.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.001059/0.001059, allocations: 223.7 kB / 22.26 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 0.9955/0.9955, allocations: 230.6 MB / 256 MB, free: 9.785 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.8451/0.8451, allocations: 203.8 MB / 0.5042 GB, free: 10.74 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.001064/0.001064, allocations: 66.3 kB / 0.7182 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5493/0.5504, allocations: 102 MB / 0.8179 GB, free: 1.273 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002539/0.5529, allocations: 1.555 MB / 0.8194 GB, free: 196 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004753/0.5534, allocations: 132.5 kB / 0.8195 GB, free: 108 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.887e-05/0.5534, allocations: 0 / 0.8195 GB, free: 108 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.585e-05/0.5535, allocations: 0.6094 kB / 0.8195 GB, free: 108 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.901e-05/0.5535, allocations: 4.875 kB / 0.8195 GB, free: 104 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.5538, allocations: 31.92 kB / 0.8195 GB, free: 84 kB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.07e-05/0.5539, allocations: 26.97 kB / 0.8196 GB, free: 72 kB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.554, allocations: 13.2 kB / 0.8196 GB, free: 68 kB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.009e-05/0.5541, allocations: 17.25 kB / 0.8196 GB, free: 60 kB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.402e-05/0.5541, allocations: 18.66 kB / 0.8196 GB, free: 48 kB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.5542, allocations: 1.625 kB / 0.8196 GB, free: 48 kB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.647e-05/0.5542, allocations: 13.75 kB / 0.8196 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.5542, allocations: 7 kB / 0.8196 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.946e-05/0.5543, allocations: 12.48 kB / 0.8196 GB, free: 32 kB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.5544, allocations: 40.08 kB / 0.8197 GB, free: 12 kB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.5544, allocations: 0.7031 kB / 0.8197 GB, free: 12 kB / 0.6042 GB Notification: Performance of FrontEnd: time 1.743e-06/0.5544, allocations: 0 / 0.8197 GB, free: 12 kB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.5544, allocations: 0 / 0.8197 GB, free: 12 kB / 0.6042 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.0004158/0.5548, allocations: 268.2 kB / 0.8199 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.5549, allocations: 13.06 kB / 0.82 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.979e-05/0.5549, allocations: 33.36 kB / 0.82 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.617e-05/0.5549, allocations: 6.297 kB / 0.82 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.555, allocations: 115 kB / 0.8201 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.5551, allocations: 5.906 kB / 0.8201 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.5551, allocations: 8.062 kB / 0.8201 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.5552, allocations: 56.64 kB / 0.8202 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.5552, allocations: 7.938 kB / 0.8202 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.5552, allocations: 3.938 kB / 0.8202 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.5552, allocations: 2.938 kB / 0.8202 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001081/0.5554, allocations: 37.83 kB / 0.8202 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003833/0.5557, allocations: 234.6 kB / 0.8204 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002557/0.556, allocations: 54.53 kB / 0.8205 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.436e-05/0.5561, allocations: 33.58 kB / 0.8205 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 9.602e-05/0.5562, allocations: 5.75 kB / 0.8205 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.5562, allocations: 35.08 kB / 0.8206 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.583e-06/0.5562, allocations: 2.625 kB / 0.8206 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002622/0.5564, allocations: 97.23 kB / 0.8207 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.5565, allocations: 51.41 kB / 0.8207 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.151e-05/0.5565, allocations: 99.5 kB / 0.8208 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.5565, allocations: 26.73 kB / 0.8208 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.237e-05/0.5566, allocations: 84.98 kB / 0.8209 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.5566, allocations: 7.953 kB / 0.8209 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.5566, allocations: 14.75 kB / 0.8209 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.5567, allocations: 319.5 kB / 0.8212 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.841e-05/0.5568, allocations: 20.64 kB / 0.8213 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.439e-05/0.5568, allocations: 21.3 kB / 0.8213 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.5569, allocations: 48.98 kB / 0.8213 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5569, allocations: 0 / 0.8213 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000123/0.5571, allocations: 73.61 kB / 0.8214 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.5571, allocations: 5.656 kB / 0.8214 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.5571, allocations: 0.6562 kB / 0.8214 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.5571, allocations: 0 / 0.8214 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.097e-05/0.5571, allocations: 15.81 kB / 0.8214 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.5571, allocations: 0.5625 kB / 0.8214 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.801e-05/0.5572, allocations: 14.3 kB / 0.8214 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-06/0.5572, allocations: 1.156 kB / 0.8214 GB, free: 14.41 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 6.89e-05/0.5572, allocations: 117.3 kB / 0.8215 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.346e-05/0.5573, allocations: 6.062 kB / 0.8215 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.5574, allocations: 84.27 kB / 0.8216 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.5574, allocations: 0 / 0.8216 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.5574, allocations: 0.6094 kB / 0.8216 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.5574, allocations: 3.938 kB / 0.8216 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.5576, allocations: 133.4 kB / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.5576, allocations: 0.7031 kB / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.518e-05/0.5576, allocations: 17.47 kB / 0.8218 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.5576, allocations: 0 / 0.8218 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.5576, allocations: 5.125 kB / 0.8218 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5576, allocations: 0 / 0.8218 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.5576, allocations: 4.547 kB / 0.8218 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001614/0.5578, allocations: 177 kB / 0.822 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.417e-06/0.5578, allocations: 6.422 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.088e-05/0.5578, allocations: 4 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.182e-05/0.5578, allocations: 8.719 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.5579, allocations: 3.938 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.5579, allocations: 4.719 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.767e-05/0.5579, allocations: 80.86 kB / 0.8221 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5579, allocations: 0 / 0.8221 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001598/0.5581, allocations: 12.05 kB / 0.8221 GB, free: 13.83 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.0004035/0.5585, allocations: 0.7144 MB / 0.8228 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001617/0.5586, allocations: 40.02 kB / 0.8228 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.5586, allocations: 0 / 0.8228 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.169e-05/0.5587, allocations: 29.16 kB / 0.8228 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.5589, allocations: 8.297 kB / 0.8228 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003555/0.5593, allocations: 148.2 kB / 0.823 GB, free: 12.97 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001776/0.5595, allocations: 0.6757 MB / 0.8236 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.589e-05/0.5595, allocations: 4.5 kB / 0.8236 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.5595, allocations: 21.09 kB / 0.8237 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of SimCode: time 5.81e-07/0.5595, allocations: 3.938 kB / 0.8237 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.5744, allocations: 1.696 MB / 0.8253 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.35/6.925, allocations: 13.77 kB / 0.8253 GB, free: 11.82 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 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: 9.991237237118185] Failed to read output from testmodel.py, exit status != 0: 7.003262175945565 7.021055136 6.463113561 Calling exit ...