Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.001158/0.001158, allocations: 117.5 kB / 17.13 MB, free: 5.941 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.001158/0.001158, allocations: 198.2 kB / 20.08 MB, free: 3.004 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.326/1.326, 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.002301/0.002301, allocations: 287.5 kB / 303.6 MB, free: 3.613 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.9952/0.9952, allocations: 180.9 MB / 0.5268 GB, free: 2.68 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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003448/0.003448, allocations: 99.84 kB / 0.7259 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5065/0.5099, allocations: 94.16 MB / 0.8179 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002354/0.5123, allocations: 1.52 MB / 0.8194 GB, free: 6.367 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003179/0.5126, allocations: 130.8 kB / 0.8195 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.471e-05/0.5127, allocations: 0.875 kB / 0.8195 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.5127, allocations: 3.375 kB / 0.8195 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.576e-05/0.5127, allocations: 5 kB / 0.8195 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.513, allocations: 21.11 kB / 0.8195 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.26e-05/0.513, allocations: 32.11 kB / 0.8195 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.5131, allocations: 14.33 kB / 0.8196 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.203e-05/0.5132, allocations: 11.97 kB / 0.8196 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.697e-05/0.5132, allocations: 17.23 kB / 0.8196 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.5132, allocations: 1.812 kB / 0.8196 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.196e-05/0.5133, allocations: 15.69 kB / 0.8196 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.489e-05/0.5133, allocations: 8.406 kB / 0.8196 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.56e-05/0.5133, allocations: 10.88 kB / 0.8196 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.5134, allocations: 33.89 kB / 0.8196 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.5135, allocations: 0.8438 kB / 0.8196 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.193e-06/0.5135, allocations: 0 / 0.8196 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.5135, allocations: 5.094 kB / 0.8197 GB, free: 6.184 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003972/0.5139, allocations: 345 kB / 0.82 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.5139, allocations: 13.09 kB / 0.82 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.5139, allocations: 2.438 kB / 0.82 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.441e-05/0.514, allocations: 166.2 kB / 0.8202 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.514, allocations: 4.516 kB / 0.8202 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.514, allocations: 1.969 kB / 0.8202 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.5142, allocations: 62.67 kB / 0.8202 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.5142, allocations: 1.062 kB / 0.8202 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.5142, allocations: 7.922 kB / 0.8202 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.5142, allocations: 0.9062 kB / 0.8202 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.5144, allocations: 45.28 kB / 0.8203 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002941/0.5147, allocations: 256.9 kB / 0.8205 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.515, allocations: 63.27 kB / 0.8206 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.187e-05/0.5151, allocations: 26.44 kB / 0.8206 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.793e-05/0.5152, allocations: 84.61 kB / 0.8207 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.42e-05/0.5152, allocations: 31.59 kB / 0.8207 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.001e-06/0.5152, allocations: 0 / 0.8207 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003615/0.5156, allocations: 88.02 kB / 0.8208 GB, free: 5.059 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.5156, allocations: 56.75 kB / 0.8209 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.164e-05/0.5157, allocations: 109.8 kB / 0.821 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.963e-06/0.5157, allocations: 30.89 kB / 0.821 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.756e-05/0.5157, allocations: 89.22 kB / 0.8211 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.5157, allocations: 11.83 kB / 0.8211 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.5157, allocations: 13.5 kB / 0.8211 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.296e-05/0.5158, allocations: 316.5 kB / 0.8214 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.696e-05/0.5159, allocations: 21.16 kB / 0.8214 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.947e-05/0.516, allocations: 21.86 kB / 0.8214 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.5161, allocations: 44.69 kB / 0.8215 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5161, allocations: 5.375 kB / 0.8215 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001957/0.5163, allocations: 70.61 kB / 0.8216 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.5163, allocations: 7.156 kB / 0.8216 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.5163, allocations: 5.125 kB / 0.8216 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.5164, allocations: 0 / 0.8216 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.064e-05/0.5164, allocations: 22.42 kB / 0.8216 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.5164, allocations: 0 / 0.8216 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.291e-05/0.5165, allocations: 4.406 kB / 0.8216 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.5165, allocations: 0.7812 kB / 0.8216 GB, free: 4.34 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 (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.859e-05/0.5166, allocations: 115.1 kB / 0.8217 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.5166, allocations: 13.64 kB / 0.8217 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002444/0.5168, allocations: 80.38 kB / 0.8218 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.5168, allocations: 4.047 kB / 0.8218 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.5168, allocations: 0.9375 kB / 0.8218 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.5168, allocations: 0 / 0.8218 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.517, allocations: 163.8 kB / 0.822 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.517, allocations: 3.984 kB / 0.822 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/0.517, allocations: 15.47 kB / 0.822 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.517, allocations: 0 / 0.822 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.517, allocations: 1.156 kB / 0.822 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.517, allocations: 0 / 0.822 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.517, allocations: 4 kB / 0.822 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002294/0.5173, allocations: 174.7 kB / 0.8221 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.93e-05/0.5173, allocations: 78.64 kB / 0.8222 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.5173, allocations: 4.531 kB / 0.8222 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.732e-05/0.5174, allocations: 2.812 kB / 0.8222 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.5174, allocations: 14.08 kB / 0.8222 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-06/0.5174, allocations: 1.188 kB / 0.8222 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 2.088e-05/0.5175, allocations: 82.94 kB / 0.8223 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5175, allocations: 0 / 0.8223 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002137/0.5177, allocations: 7.5 kB / 0.8223 GB, free: 3.633 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.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.0001345/0.5178, allocations: 98.69 kB / 0.8224 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002266/0.518, allocations: 53.61 kB / 0.8225 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.518, allocations: 5.531 kB / 0.8225 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 8.988e-05/0.5181, allocations: 23.66 kB / 0.8225 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.5184, allocations: 7.703 kB / 0.8225 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.5187, allocations: 149.7 kB / 0.8226 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.835e-05/0.5188, allocations: 0.6786 MB / 0.8233 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.787e-05/0.5188, allocations: 10.16 kB / 0.8233 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of SimCode: time 2.71e-07/0.5188, allocations: 3.938 kB / 0.8233 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of Templates: time 0.002477/0.5213, allocations: 0.7433 MB / 0.8241 GB, free: 2.598 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.878297845134512] Failed to read output from testmodel.py, exit status != 0: 0.5297351609915495 0.540045886 0.023678328000000002 Calling exit ...