Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 119.7 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 193.2 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 225.6 MB / 248.5 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002212/0.002212, allocations: 280 kB / 303.6 MB, free: 3.82 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9963/0.9963, allocations: 180.9 MB / 0.5268 GB, free: 2.715 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002639/0.002639, allocations: 100.3 kB / 0.726 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4972/0.4999, allocations: 94.16 MB / 0.8179 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001553/0.5014, allocations: 0.588 MB / 0.8185 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002347/0.5017, allocations: 50.45 kB / 0.8185 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.426e-05/0.5017, allocations: 0 / 0.8185 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.034e-05/0.5017, allocations: 0 / 0.8185 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.03e-06/0.5017, allocations: 0 / 0.8185 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002032/0.5019, allocations: 15.62 kB / 0.8185 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 3.995e-05/0.5019, allocations: 6.344 kB / 0.8186 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.37e-05/0.502, allocations: 1.031 kB / 0.8186 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.319e-05/0.502, allocations: 4.328 kB / 0.8186 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.096e-05/0.502, allocations: 8.953 kB / 0.8186 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.568e-06/0.502, allocations: 0.9688 kB / 0.8186 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.029e-05/0.5021, allocations: 7.969 kB / 0.8186 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.987e-06/0.5021, allocations: 0.9688 kB / 0.8186 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.627e-05/0.5021, allocations: 1.031 kB / 0.8186 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 7.596e-05/0.5022, allocations: 15.66 kB / 0.8186 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.5022, allocations: 0 / 0.8186 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5022, allocations: 0 / 0.8186 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.5022, allocations: 4 kB / 0.8186 GB, free: 7.039 MB / 0.5762 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.0002199/0.5024, allocations: 312.8 kB / 0.8189 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.5025, allocations: 9.344 kB / 0.8189 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.5025, allocations: 4.938 kB / 0.8189 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.973e-05/0.5025, allocations: 161.8 kB / 0.8191 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.663e-06/0.5025, allocations: 384 / 0.8191 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.5026, allocations: 1.406 kB / 0.8191 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.769e-05/0.5026, allocations: 41.8 kB / 0.8191 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.5027, allocations: 8.125 kB / 0.8191 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.5027, allocations: 5.156 kB / 0.8191 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.5027, allocations: 3.984 kB / 0.8191 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.888e-05/0.5027, allocations: 3.312 kB / 0.8191 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.876e-05/0.5028, allocations: 152.2 kB / 0.8193 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.131e-05/0.5028, allocations: 22.05 kB / 0.8193 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.478e-05/0.5029, allocations: 6.891 kB / 0.8193 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/0.503, allocations: 84.86 kB / 0.8194 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.503, allocations: 39.2 kB / 0.8194 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.503, allocations: 1.344 kB / 0.8194 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.000129/0.5031, allocations: 44.03 kB / 0.8195 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.079e-05/0.5031, allocations: 52.06 kB / 0.8195 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.874e-05/0.5032, allocations: 98.84 kB / 0.8196 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.593e-06/0.5032, allocations: 29.64 kB / 0.8196 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.965e-06/0.5032, allocations: 80.14 kB / 0.8197 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.5032, allocations: 5.094 kB / 0.8197 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.5032, allocations: 13.44 kB / 0.8197 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.5033, allocations: 310.8 kB / 0.82 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.372e-05/0.5033, allocations: 6.062 kB / 0.82 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.704e-06/0.5033, allocations: 2.219 kB / 0.82 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.794e-05/0.5033, allocations: 17.47 kB / 0.82 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.5033, allocations: 0 / 0.82 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.785e-05/0.5034, allocations: 41.7 kB / 0.8201 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.5034, allocations: 5.781 kB / 0.8201 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.5034, allocations: 0 / 0.8201 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.5034, allocations: 3.938 kB / 0.8201 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.808e-05/0.5034, allocations: 6.344 kB / 0.8201 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.5034, allocations: 1 kB / 0.8201 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.237e-05/0.5035, allocations: 3.797 kB / 0.8201 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-06/0.5035, allocations: 0.9062 kB / 0.8201 GB, free: 5.355 MB / 0.5762 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 3.569e-05/0.5035, allocations: 107.5 kB / 0.8202 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.983e-06/0.5035, allocations: 4.969 kB / 0.8202 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.859e-05/0.5036, allocations: 51.83 kB / 0.8203 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.5036, allocations: 0 / 0.8203 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.5036, allocations: 1.094 kB / 0.8203 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.5036, allocations: 0 / 0.8203 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.616e-05/0.5036, allocations: 155.2 kB / 0.8204 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.5036, allocations: 0 / 0.8204 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.962e-05/0.5036, allocations: 3.344 kB / 0.8204 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.5036, allocations: 0 / 0.8204 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.5037, allocations: 5.312 kB / 0.8204 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.5037, allocations: 4.031 kB / 0.8204 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.5037, allocations: 0 / 0.8204 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.557e-05/0.5037, allocations: 74.2 kB / 0.8205 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.154e-05/0.5037, allocations: 77.11 kB / 0.8206 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.5037, allocations: 5.531 kB / 0.8206 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-06/0.5037, allocations: 0 / 0.8206 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.723e-05/0.5038, allocations: 5.828 kB / 0.8206 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.5038, allocations: 4.938 kB / 0.8206 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.999e-06/0.5038, allocations: 75.28 kB / 0.8207 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5e-08/0.5038, allocations: 0.9062 kB / 0.8207 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001804/0.504, allocations: 3.375 kB / 0.8207 GB, free: 4.738 MB / 0.5762 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.0001165/0.5041, allocations: 109.7 kB / 0.8208 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.173e-05/0.5042, allocations: 9.25 kB / 0.8208 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.5042, allocations: 0 / 0.8208 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.243e-05/0.5042, allocations: 12.41 kB / 0.8208 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.5043, allocations: 0.75 kB / 0.8208 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000159/0.5044, allocations: 117.5 kB / 0.8209 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.128e-05/0.5045, allocations: 0.6713 MB / 0.8216 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.244e-05/0.5045, allocations: 8.969 kB / 0.8216 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.5045, allocations: 0 / 0.8216 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of Templates: time 0.001859/0.5064, allocations: 462.9 kB / 0.822 GB, free: 3.766 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.723158031934872] Failed to read output from testmodel.py, exit status != 0: 0.5136602360289544 0.523702512 0.018916188 Calling exit ...