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.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.0007432/0.0007432, allocations: 72.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.0007263/0.0007263, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8547/0.8547, allocations: 177.1 MB / 203.5 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001543/0.001543, allocations: 233.7 kB / 260.2 MB, free: 13.04 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6731/0.6731, allocations: 138.4 MB / 455.1 MB, free: 29.98 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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: 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 1.713e-06/1.713e-06, allocations: 0 / 0.6475 GB, free: 1.391 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.892e-05/2.063e-05, allocations: 6.219 kB / 0.6475 GB, free: 1.383 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.2432/0.2433, allocations: 1.534 MB / 0.649 GB, free: 56.31 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.00033/0.2436, allocations: 125.7 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.376e-05/0.2436, allocations: 0.8125 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 2.674e-05/0.2436, allocations: 3.188 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 4.015e-05/0.2437, allocations: 5.078 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.2439, allocations: 24.16 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 7.358e-05/0.244, allocations: 30.78 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 9.359e-05/0.2441, allocations: 10.56 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 5.822e-05/0.2441, allocations: 16.61 kB / 0.6492 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 4.416e-05/0.2442, allocations: 14.16 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.2442, allocations: 2.656 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 5.895e-05/0.2443, allocations: 14.67 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.523e-05/0.2443, allocations: 7.938 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 2.139e-05/0.2443, allocations: 8.719 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.2444, allocations: 43.92 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2444, allocations: 1.281 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2444, allocations: 0 / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.429e-06/0.2444, allocations: 1.344 kB / 0.6493 GB, free: 56.3 MB / 0.5573 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.0003181/0.2448, allocations: 262.6 kB / 0.6496 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2448, allocations: 11.31 kB / 0.6496 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.172e-05/0.2448, allocations: 9.016 kB / 0.6496 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.029e-05/0.2449, allocations: 110.3 kB / 0.6497 GB, free: 55.91 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.2449, allocations: 6.922 kB / 0.6497 GB, free: 55.91 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.2449, allocations: 2.844 kB / 0.6497 GB, free: 55.91 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.245, allocations: 59.11 kB / 0.6498 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.2451, allocations: 1.094 kB / 0.6498 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.2451, allocations: 384 / 0.6498 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.2451, allocations: 1.344 kB / 0.6498 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.2452, allocations: 46.12 kB / 0.6498 GB, free: 55.87 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002503/0.2454, allocations: 209.5 kB / 0.65 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.2456, allocations: 59.11 kB / 0.6501 GB, free: 55.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.138e-05/0.2457, allocations: 30.55 kB / 0.6501 GB, free: 55.64 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 7.125e-05/0.2457, allocations: 6.031 kB / 0.6501 GB, free: 55.64 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.368e-05/0.2458, allocations: 32.73 kB / 0.6501 GB, free: 55.6 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.2458, allocations: 2.094 kB / 0.6501 GB, free: 55.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0002293/0.246, allocations: 100.1 kB / 0.6502 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.136e-05/0.246, allocations: 53.98 kB / 0.6503 GB, free: 55.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.067e-05/0.2461, allocations: 104.1 kB / 0.6504 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.452e-06/0.2461, allocations: 26.33 kB / 0.6504 GB, free: 55.37 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 2.424e-05/0.2461, allocations: 83.52 kB / 0.6505 GB, free: 55.29 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.2461, allocations: 6.906 kB / 0.6505 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.2461, allocations: 18.75 kB / 0.6505 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.042e-05/0.2462, allocations: 317.5 kB / 0.6508 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.038e-05/0.2462, allocations: 17.42 kB / 0.6508 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.313e-05/0.2462, allocations: 21.3 kB / 0.6509 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.777e-05/0.2463, allocations: 48.14 kB / 0.6509 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2463, allocations: 0 / 0.6509 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001079/0.2464, allocations: 81.95 kB / 0.651 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.2465, allocations: 8.625 kB / 0.651 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2465, allocations: 1.344 kB / 0.651 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.2465, allocations: 0.5625 kB / 0.651 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.339e-05/0.2465, allocations: 11.69 kB / 0.651 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2465, allocations: 0.5156 kB / 0.651 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.489e-05/0.2465, allocations: 7.938 kB / 0.651 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-06/0.2465, allocations: 0.5312 kB / 0.651 GB, free: 54.9 MB / 0.5573 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 3.857e-05/0.2466, allocations: 115 kB / 0.6511 GB, free: 54.79 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.12e-05/0.2466, allocations: 1.812 kB / 0.6511 GB, free: 54.79 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.2467, allocations: 86.03 kB / 0.6512 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2467, allocations: 1.062 kB / 0.6512 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2468, allocations: 0.7969 kB / 0.6512 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.2468, allocations: 6.906 kB / 0.6512 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.25e-05/0.2468, allocations: 110.3 kB / 0.6513 GB, free: 54.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2468, allocations: 2.906 kB / 0.6513 GB, free: 54.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.936e-05/0.2469, allocations: 13.98 kB / 0.6513 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2469, allocations: 1.406 kB / 0.6513 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.2469, allocations: 3.906 kB / 0.6513 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2469, allocations: 7.609 kB / 0.6513 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2469, allocations: 0 / 0.6513 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001187/0.247, allocations: 170.2 kB / 0.6515 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-06/0.247, allocations: 5.734 kB / 0.6515 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.247, allocations: 2.594 kB / 0.6515 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.861e-05/0.247, allocations: 11.11 kB / 0.6515 GB, free: 54.47 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.2471, allocations: 8.859 kB / 0.6515 GB, free: 54.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.2471, allocations: 7.641 kB / 0.6515 GB, free: 54.47 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 1.559e-05/0.2471, allocations: 81.86 kB / 0.6516 GB, free: 54.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4e-08/0.2471, allocations: 0 / 0.6516 GB, free: 54.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00015/0.2473, allocations: 9.781 kB / 0.6516 GB, free: 54.39 MB / 0.5573 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.0001101/0.2474, allocations: 98.48 kB / 0.6517 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00013/0.2475, allocations: 44.78 kB / 0.6518 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-06/0.2475, allocations: 0.7812 kB / 0.6518 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 4.911e-05/0.2475, allocations: 24.47 kB / 0.6518 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.2478, allocations: 5.062 kB / 0.6518 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002169/0.248, allocations: 148.3 kB / 0.6519 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.28e-05/0.248, allocations: 62.5 kB / 0.652 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.248, allocations: 16.53 kB / 0.652 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of SimCode: time 4.81e-07/0.248, allocations: 0 / 0.652 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.001645/0.2497, allocations: 0.7485 MB / 0.6527 GB, free: 54.07 MB / 0.5573 GB " [Timeout remaining time 660] 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: 5.184229219332337] Failed to read output from testmodel.py, exit status != 0: 0.25457941461354494 0.26192918000000004 0.015912225000000002 Calling exit ...