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.0008708/0.0008708, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001005/0.001005, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9428/0.9428, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.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.744/0.744, allocations: 154.5 MB / 413.7 MB, free: 0.832 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 0.618 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.615e-05/1.757e-05, allocations: 8.656 kB / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001832/0.00185, allocations: 1.535 MB / 0.6196 GB, free: 12.15 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0003007/0.002151, allocations: 135.6 kB / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.169e-05/0.002182, allocations: 0 / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.602e-05/0.002208, allocations: 3.938 kB / 0.6197 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 3.612e-05/0.002245, allocations: 3.938 kB / 0.6197 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.002475, allocations: 23.92 kB / 0.6197 GB, free: 11.98 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 6.93e-05/0.002545, allocations: 27.92 kB / 0.6197 GB, free: 11.96 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.195e-05/0.002637, allocations: 15.97 kB / 0.6198 GB, free: 11.94 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.574e-05/0.002682, allocations: 8 kB / 0.6198 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.135e-05/0.002724, allocations: 15.92 kB / 0.6198 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.002739, allocations: 8 kB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.103e-05/0.0028, allocations: 15.92 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.489e-05/0.002815, allocations: 7.984 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.002837, allocations: 11.98 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.002949, allocations: 39.88 kB / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.002951, allocations: 0 / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.162e-06/0.002952, allocations: 0 / 0.6199 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.002956, allocations: 0 / 0.6199 GB, free: 11.84 MB / 0.5886 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.0003509/0.003307, allocations: 270.3 kB / 0.6201 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.003344, allocations: 9.469 kB / 0.6201 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.675e-05/0.003371, allocations: 34.75 kB / 0.6202 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.058e-05/0.003392, allocations: 4.938 kB / 0.6202 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.541e-05/0.003467, allocations: 105.8 kB / 0.6203 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.003487, allocations: 4.375 kB / 0.6203 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.815e-06/0.003495, allocations: 384 / 0.6203 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.003628, allocations: 62.16 kB / 0.6203 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.003634, allocations: 192 / 0.6203 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.003644, allocations: 4.375 kB / 0.6203 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.003649, allocations: 4.125 kB / 0.6203 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.912e-05/0.003748, allocations: 43.95 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003235/0.004071, allocations: 224 kB / 0.6206 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.004281, allocations: 62.47 kB / 0.6207 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.102e-05/0.004332, allocations: 28.89 kB / 0.6207 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 7.31e-05/0.004405, allocations: 7.938 kB / 0.6207 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.004422, allocations: 30.56 kB / 0.6207 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.004423, allocations: 0 / 0.6207 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002354/0.004658, allocations: 101.6 kB / 0.6208 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.004688, allocations: 55.34 kB / 0.6209 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.212e-05/0.00474, allocations: 101.8 kB / 0.621 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.004752, allocations: 29.7 kB / 0.621 GB, free: 10.51 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.819e-05/0.00479, allocations: 84.12 kB / 0.6211 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.004805, allocations: 7.891 kB / 0.6211 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/0.004834, allocations: 17.72 kB / 0.6211 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.004983, allocations: 318.8 kB / 0.6214 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.684e-05/0.00503, allocations: 23.97 kB / 0.6214 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.012e-05/0.00507, allocations: 19.98 kB / 0.6214 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.285e-05/0.005153, allocations: 40.81 kB / 0.6215 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.005155, allocations: 4 kB / 0.6215 GB, free: 9.98 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001132/0.005268, allocations: 81.48 kB / 0.6216 GB, free: 9.895 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.005281, allocations: 4 kB / 0.6216 GB, free: 9.891 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.005287, allocations: 8 kB / 0.6216 GB, free: 9.883 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.005299, allocations: 3.984 kB / 0.6216 GB, free: 9.879 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.439e-05/0.005343, allocations: 8 kB / 0.6216 GB, free: 9.871 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.00535, allocations: 0 / 0.6216 GB, free: 9.871 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.776e-05/0.005378, allocations: 7.984 kB / 0.6216 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.005383, allocations: 0 / 0.6216 GB, free: 9.863 MB / 0.5886 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.04e-05/0.005444, allocations: 114.8 kB / 0.6217 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.005457, allocations: 3.938 kB / 0.6217 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.005605, allocations: 81.33 kB / 0.6218 GB, free: 9.645 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.005607, allocations: 3.984 kB / 0.6218 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.005611, allocations: 4 kB / 0.6218 GB, free: 9.637 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.005614, allocations: 0 / 0.6218 GB, free: 9.637 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.812e-05/0.005712, allocations: 128.8 kB / 0.6219 GB, free: 9.469 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.005714, allocations: 4 kB / 0.6219 GB, free: 9.465 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.189e-05/0.005746, allocations: 15.86 kB / 0.6219 GB, free: 9.449 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.005748, allocations: 4 kB / 0.6219 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.005756, allocations: 4 kB / 0.6219 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.005757, allocations: 4 kB / 0.6219 GB, free: 9.438 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.005758, allocations: 0 / 0.6219 GB, free: 9.438 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000131/0.005889, allocations: 168 kB / 0.6221 GB, free: 9.258 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.324e-06/0.005896, allocations: 7.922 kB / 0.6221 GB, free: 9.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.005906, allocations: 4 kB / 0.6221 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.764e-05/0.005944, allocations: 4 kB / 0.6221 GB, free: 9.242 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.005984, allocations: 8.031 kB / 0.6221 GB, free: 9.234 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.005988, allocations: 3.984 kB / 0.6221 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.394e-05/0.006012, allocations: 83.27 kB / 0.6222 GB, free: 9.148 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.006012, allocations: 4 kB / 0.6222 GB, free: 9.145 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001515/0.006163, allocations: 8 kB / 0.6222 GB, free: 9.137 MB / 0.5886 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.0003409/0.006504, allocations: 0.7123 MB / 0.6229 GB, free: 8.398 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.006628, allocations: 39.95 kB / 0.623 GB, free: 8.359 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.00663, allocations: 3.938 kB / 0.623 GB, free: 8.355 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 4.63e-05/0.006676, allocations: 31.92 kB / 0.623 GB, free: 8.324 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/0.006853, allocations: 6.172 kB / 0.623 GB, free: 8.32 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000482/0.007335, allocations: 138.6 kB / 0.6231 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.15e-05/0.007376, allocations: 63.28 kB / 0.6232 GB, free: 8.062 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.289e-05/0.007399, allocations: 4 kB / 0.6232 GB, free: 8.059 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.007433, allocations: 16.5 kB / 0.6232 GB, free: 8.043 MB / 0.5886 GB Notification: Performance of SimCode: time 4e-07/0.007433, allocations: 4 kB / 0.6232 GB, free: 8.039 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01436/0.02179, allocations: 2.276 MB / 0.6254 GB, free: 5.906 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.76/6.782, allocations: 6.656 kB / 0.6254 GB, free: 5.902 MB / 0.5886 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.576007748953998] Failed to read output from testmodel.py, exit status != 0: 6.863134327344596 6.873229818 6.867495428 Calling exit ...