Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.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.001321/0.001321, allocations: 80.2 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001632/0.001632, allocations: 174.6 kB / 22.46 MB, free: 5.355 MB / 14.72 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.457/1.457, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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 1.206/1.206, allocations: 154.6 MB / 413.8 MB, free: 5.215 MB / 382.1 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 178] 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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 0.6186 GB, free: 4.492 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.484e-05, allocations: 8.75 kB / 0.6186 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001459/0.001484, allocations: 0.5863 MB / 0.6192 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002447/0.001729, allocations: 47.81 kB / 0.6193 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.678e-05/0.001746, allocations: 0.625 kB / 0.6193 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.14e-05/0.001767, allocations: 3.938 kB / 0.6193 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.793e-06/0.001774, allocations: 2.531 kB / 0.6193 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.002004, allocations: 15.92 kB / 0.6193 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.908e-05/0.002043, allocations: 4 kB / 0.6193 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.432e-05/0.002087, allocations: 4 kB / 0.6193 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.267e-05/0.00211, allocations: 0 / 0.6193 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 1.878e-05/0.002129, allocations: 3.984 kB / 0.6193 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.002139, allocations: 0 / 0.6193 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.606e-05/0.002216, allocations: 19.98 kB / 0.6193 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.002224, allocations: 0 / 0.6193 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.284e-05/0.002237, allocations: 0 / 0.6193 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.203e-05/0.002319, allocations: 11.98 kB / 0.6193 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.002321, allocations: 0 / 0.6193 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.61e-07/0.002321, allocations: 0 / 0.6193 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.002324, allocations: 0 / 0.6193 GB, free: 3.801 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002929/0.002617, allocations: 238.4 kB / 0.6196 GB, free: 3.535 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.00265, allocations: 8.031 kB / 0.6196 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.002684, allocations: 16.81 kB / 0.6196 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.172e-05/0.002766, allocations: 101.8 kB / 0.6197 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.002778, allocations: 8.375 kB / 0.6197 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.341e-06/0.002784, allocations: 384 / 0.6197 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.007e-05/0.002874, allocations: 34.2 kB / 0.6197 GB, free: 3.34 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.002884, allocations: 4.188 kB / 0.6197 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.002892, allocations: 4.312 kB / 0.6197 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.002896, allocations: 384 / 0.6197 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.292e-05/0.002928, allocations: 11.92 kB / 0.6197 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.003056, allocations: 97.33 kB / 0.6198 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.624e-05/0.003113, allocations: 26.55 kB / 0.6199 GB, free: 3.16 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.003131, allocations: 12.86 kB / 0.6199 GB, free: 3.145 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.003244, allocations: 8.047 kB / 0.6199 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.003272, allocations: 30.56 kB / 0.6199 GB, free: 3.098 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.003273, allocations: 0 / 0.6199 GB, free: 3.098 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001295/0.003402, allocations: 41.7 kB / 0.6199 GB, free: 3.051 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.003445, allocations: 55.34 kB / 0.62 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.003548, allocations: 93.84 kB / 0.6201 GB, free: 2.883 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.003566, allocations: 25.7 kB / 0.6201 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/0.003601, allocations: 80.14 kB / 0.6202 GB, free: 2.77 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.988e-05/0.003621, allocations: 3.984 kB / 0.6202 GB, free: 2.766 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.00365, allocations: 21.84 kB / 0.6202 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002053/0.003856, allocations: 314.8 kB / 0.6205 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.003866, allocations: 4 kB / 0.6205 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.271e-06/0.003872, allocations: 0 / 0.6205 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.461e-05/0.003907, allocations: 20.84 kB / 0.6205 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.003908, allocations: 0 / 0.6205 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.721e-05/0.003965, allocations: 33.7 kB / 0.6206 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.003976, allocations: 4 kB / 0.6206 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.003979, allocations: 0 / 0.6206 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.003994, allocations: 8.031 kB / 0.6206 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.934e-05/0.004043, allocations: 7.984 kB / 0.6206 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.456e-06/0.004047, allocations: 0 / 0.6206 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.569e-05/0.004062, allocations: 7.891 kB / 0.6206 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.004068, allocations: 4 kB / 0.6206 GB, free: 2.324 MB / 0.5294 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.871e-05/0.004146, allocations: 111.7 kB / 0.6207 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.803e-06/0.004153, allocations: 0 / 0.6207 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.098e-05/0.004244, allocations: 44.84 kB / 0.6207 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.004246, allocations: 0 / 0.6207 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.004249, allocations: 0 / 0.6207 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.004253, allocations: 11.97 kB / 0.6208 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.801e-05/0.004331, allocations: 97.27 kB / 0.6208 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.004332, allocations: 0 / 0.6208 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.333e-05/0.004355, allocations: 4 kB / 0.6209 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.004356, allocations: 0 / 0.6209 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.004369, allocations: 3.984 kB / 0.6209 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.00437, allocations: 3.938 kB / 0.6209 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.004371, allocations: 0 / 0.6209 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.029e-05/0.004461, allocations: 69.02 kB / 0.6209 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 9.859e-06/0.004471, allocations: 11.92 kB / 0.6209 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-06/0.00448, allocations: 4.031 kB / 0.6209 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.004491, allocations: 0 / 0.6209 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.222e-05/0.004513, allocations: 4 kB / 0.6209 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.004515, allocations: 0 / 0.6209 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.902e-05/0.004554, allocations: 75.28 kB / 0.621 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5e-08/0.004554, allocations: 0 / 0.621 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0001765/0.004731, allocations: 4 kB / 0.621 GB, free: 1.824 MB / 0.5294 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001535/0.004884, allocations: 111.2 kB / 0.6211 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 7.253e-05/0.004957, allocations: 7.938 kB / 0.6211 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.004958, allocations: 4.062 kB / 0.6211 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.397e-05/0.004972, allocations: 4 kB / 0.6211 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.005094, allocations: 10.94 kB / 0.6212 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001905/0.005285, allocations: 88.84 kB / 0.6212 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.894e-05/0.005334, allocations: 55.36 kB / 0.6213 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 9.738e-06/0.005343, allocations: 0 / 0.6213 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.631e-05/0.00536, allocations: 8.5 kB / 0.6213 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of SimCode: time 3.21e-07/0.00536, allocations: 4 kB / 0.6213 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of Templates: time 0.002524/0.007884, allocations: 330.2 kB / 0.6216 GB, free: 1.16 MB / 0.5294 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.663253244012594] Failed to read output from testmodel.py, exit status != 0: 0.015535879880189896 0.030044834000000003 0.024775971 Calling exit ...