Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0007252/0.0007252, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007303/0.0007303, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.8907/0.8907, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.6949/0.6949, allocations: 154.6 MB / 414.5 MB, free: 0.8047 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/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: translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.445e-06/2.445e-06, allocations: 4 kB / 0.6193 GB, free: 13.15 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.36e-05/2.604e-05, allocations: 2.281 kB / 0.6193 GB, free: 13.15 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002101/0.002127, allocations: 1.542 MB / 0.6208 GB, free: 11.6 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0003158/0.002443, allocations: 131.6 kB / 0.621 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.63e-05/0.00248, allocations: 0 / 0.621 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.767e-05/0.002507, allocations: 3.938 kB / 0.621 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 4.024e-05/0.002547, allocations: 3.984 kB / 0.621 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.002803, allocations: 27.86 kB / 0.621 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 6.913e-05/0.002872, allocations: 27.92 kB / 0.621 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.426e-05/0.002967, allocations: 11.98 kB / 0.621 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.742e-05/0.003014, allocations: 15.92 kB / 0.6211 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.077e-05/0.003055, allocations: 19.98 kB / 0.6211 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.003068, allocations: 0 / 0.6211 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.97e-05/0.003127, allocations: 15.98 kB / 0.6211 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.183e-05/0.003139, allocations: 3.984 kB / 0.6211 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.619e-05/0.003155, allocations: 8 kB / 0.6211 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.003274, allocations: 43.81 kB / 0.6211 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.003276, allocations: 0 / 0.6211 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.032e-06/0.003277, allocations: 4 kB / 0.6211 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.00328, allocations: 0 / 0.6211 GB, free: 11.29 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.0003299/0.00361, allocations: 262.4 kB / 0.6214 GB, free: 11 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.003644, allocations: 12.03 kB / 0.6214 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.003675, allocations: 4.891 kB / 0.6214 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.291e-05/0.003747, allocations: 109.7 kB / 0.6215 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.003766, allocations: 384 / 0.6215 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.00378, allocations: 8.375 kB / 0.6215 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.003908, allocations: 62.16 kB / 0.6216 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.003915, allocations: 192 / 0.6216 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.003923, allocations: 384 / 0.6216 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.003928, allocations: 384 / 0.6216 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.00403, allocations: 47.89 kB / 0.6216 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002798/0.004309, allocations: 208.6 kB / 0.6218 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.004503, allocations: 54.47 kB / 0.6219 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.61e-05/0.004549, allocations: 24.91 kB / 0.6219 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 6.49e-05/0.004614, allocations: 4 kB / 0.6219 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.00463, allocations: 42.5 kB / 0.622 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.004631, allocations: 0 / 0.622 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002293/0.00486, allocations: 97.56 kB / 0.622 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.004891, allocations: 55.34 kB / 0.6221 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.264e-05/0.004944, allocations: 101.8 kB / 0.6222 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.004954, allocations: 29.64 kB / 0.6222 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.156e-05/0.004995, allocations: 84.14 kB / 0.6223 GB, free: 9.949 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.005011, allocations: 7.953 kB / 0.6223 GB, free: 9.941 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.005037, allocations: 17.7 kB / 0.6223 GB, free: 9.918 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.848e-05/0.005116, allocations: 314.8 kB / 0.6226 GB, free: 9.602 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.599e-05/0.005162, allocations: 19.98 kB / 0.6226 GB, free: 9.582 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.874e-05/0.0052, allocations: 23.97 kB / 0.6227 GB, free: 9.559 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.166e-05/0.005282, allocations: 40.83 kB / 0.6227 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.005284, allocations: 0 / 0.6227 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001085/0.005392, allocations: 78.06 kB / 0.6228 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.005404, allocations: 9.812 kB / 0.6228 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.005409, allocations: 4 kB / 0.6228 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.005418, allocations: 0 / 0.6228 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.339e-05/0.005462, allocations: 19.92 kB / 0.6228 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.005466, allocations: 0 / 0.6228 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.489e-05/0.00549, allocations: 7.984 kB / 0.6228 GB, free: 9.395 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.005495, allocations: 4.047 kB / 0.6228 GB, free: 9.391 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 5.182e-05/0.005547, allocations: 110.8 kB / 0.6229 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/0.00556, allocations: 4 kB / 0.6229 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/0.005705, allocations: 93.27 kB / 0.623 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.005707, allocations: 0 / 0.623 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.005711, allocations: 0 / 0.623 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.005713, allocations: 0 / 0.623 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.364e-05/0.005797, allocations: 109.3 kB / 0.6231 GB, free: 9.031 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.005798, allocations: 0 / 0.6231 GB, free: 9.031 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.797e-05/0.005826, allocations: 11.98 kB / 0.6231 GB, free: 9.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.005827, allocations: 0 / 0.6231 GB, free: 9.02 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.005832, allocations: 3.938 kB / 0.6231 GB, free: 9.016 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.005834, allocations: 3.938 kB / 0.6231 GB, free: 9.012 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.005834, allocations: 7.938 kB / 0.6232 GB, free: 9.004 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001298/0.005964, allocations: 171.5 kB / 0.6233 GB, free: 8.82 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-06/0.005969, allocations: 4 kB / 0.6233 GB, free: 8.816 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.016e-05/0.00598, allocations: 0 / 0.6233 GB, free: 8.816 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.766e-05/0.006017, allocations: 11.92 kB / 0.6233 GB, free: 8.805 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.006063, allocations: 8 kB / 0.6233 GB, free: 8.797 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-06/0.006065, allocations: 0 / 0.6233 GB, free: 8.797 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.385e-05/0.006089, allocations: 83.27 kB / 0.6234 GB, free: 8.715 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.006089, allocations: 0 / 0.6234 GB, free: 8.715 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001487/0.006238, allocations: 15.94 kB / 0.6234 GB, free: 8.699 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 9.992e-05/0.006338, allocations: 99.25 kB / 0.6235 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001248/0.006462, allocations: 47.83 kB / 0.6236 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.006464, allocations: 0 / 0.6236 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 4.391e-05/0.006508, allocations: 23.97 kB / 0.6236 GB, free: 8.523 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001707/0.006678, allocations: 4 kB / 0.6236 GB, free: 8.52 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002336/0.006912, allocations: 142.6 kB / 0.6237 GB, free: 8.348 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.519e-05/0.006957, allocations: 59.34 kB / 0.6238 GB, free: 8.27 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.205e-05/0.006979, allocations: 12.5 kB / 0.6238 GB, free: 8.258 MB / 0.5886 GB Notification: Performance of SimCode: time 4.41e-07/0.006979, allocations: 0 / 0.6238 GB, free: 8.258 MB / 0.5886 GB Notification: Performance of Templates: time 0.001463/0.008443, allocations: 0.7561 MB / 0.6245 GB, free: 7.504 MB / 0.5886 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.972799480892718] Failed to read output from testmodel.py, exit status != 0: 0.012887542136013508 0.020637798000000002 0.015803239 Calling exit ...