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.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.001506/0.001506, allocations: 78.64 kB / 19.76 MB, free: 1.875 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.001593/0.001593, allocations: 156.8 kB / 23.01 MB, free: 4.598 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.33/1.33, allocations: 177.2 MB / 203.4 MB, free: 8.969 MB / 190.1 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.002428/0.002428, allocations: 237.2 kB / 260 MB, free: 452 kB / 238.1 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.8846/0.8846, allocations: 138.5 MB / 455 MB, free: 15.1 MB / 430.1 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.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: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002971/0.002971, allocations: 99.84 kB / 0.6474 GB, free: 7.547 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3709, allocations: 95.34 MB / 0.7405 GB, free: 17.43 MB / 0.5919 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001578/0.3725, allocations: 0.5918 MB / 0.7411 GB, free: 17.07 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0002298/0.3727, allocations: 53.73 kB / 0.7411 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.436e-05/0.3727, allocations: 0 / 0.7411 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.3727, allocations: 5.062 kB / 0.7411 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 4.629e-06/0.3727, allocations: 0 / 0.7411 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.3729, allocations: 6.25 kB / 0.7411 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 3.739e-05/0.373, allocations: 7.094 kB / 0.7411 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.85e-05/0.373, allocations: 2.094 kB / 0.7411 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 1.581e-05/0.373, allocations: 1.188 kB / 0.7411 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 1.841e-05/0.373, allocations: 6.031 kB / 0.7411 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.373, allocations: 0 / 0.7411 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 6.573e-05/0.3731, allocations: 12.33 kB / 0.7411 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 1.015e-05/0.3731, allocations: 7.922 kB / 0.7412 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 1.373e-05/0.3731, allocations: 1.219 kB / 0.7412 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 7.465e-05/0.3732, allocations: 5.828 kB / 0.7412 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3732, allocations: 1.156 kB / 0.7412 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3732, allocations: 0 / 0.7412 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3732, allocations: 0.5625 kB / 0.7412 GB, free: 17.02 MB / 0.5919 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.0001926/0.3734, allocations: 246.6 kB / 0.7414 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.3734, allocations: 14.69 kB / 0.7414 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.03e-05/0.3735, allocations: 1.734 kB / 0.7414 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.061e-05/0.3735, allocations: 104.6 kB / 0.7415 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.3735, allocations: 1.406 kB / 0.7415 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-06/0.3735, allocations: 1.406 kB / 0.7415 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.307e-05/0.3736, allocations: 35.7 kB / 0.7416 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.3736, allocations: 192 / 0.7416 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.3736, allocations: 3.938 kB / 0.7416 GB, free: 16.58 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3736, allocations: 1.094 kB / 0.7416 GB, free: 16.58 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.42e-05/0.3737, allocations: 4.828 kB / 0.7416 GB, free: 16.58 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.586e-05/0.3737, allocations: 96.17 kB / 0.7417 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 4.542e-05/0.3738, allocations: 32.5 kB / 0.7417 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.3738, allocations: 11.81 kB / 0.7417 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.3739, allocations: 4.719 kB / 0.7417 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/0.3739, allocations: 36.36 kB / 0.7417 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.3739, allocations: 1.188 kB / 0.7417 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2): time 0.0001125/0.374, allocations: 45.17 kB / 0.7418 GB, free: 16.33 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.941e-05/0.374, allocations: 55.34 kB / 0.7418 GB, free: 16.27 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.041e-05/0.3741, allocations: 91.83 kB / 0.7419 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.32e-06/0.3741, allocations: 25.7 kB / 0.7419 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.244e-06/0.3741, allocations: 84.27 kB / 0.742 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.375e-05/0.3741, allocations: 6.062 kB / 0.742 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.388e-05/0.3741, allocations: 14.52 kB / 0.742 GB, free: 16.03 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.56e-05/0.3742, allocations: 316.6 kB / 0.7423 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/0.3742, allocations: 1.906 kB / 0.7423 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-06/0.3742, allocations: 2.219 kB / 0.7423 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.669e-05/0.3742, allocations: 14.72 kB / 0.7424 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3742, allocations: 1.062 kB / 0.7424 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.939e-05/0.3742, allocations: 47.61 kB / 0.7424 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.3743, allocations: 13.03 kB / 0.7424 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.3743, allocations: 0 / 0.7424 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.3743, allocations: 4.516 kB / 0.7424 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.876e-05/0.3743, allocations: 8.156 kB / 0.7424 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.3743, allocations: 0 / 0.7424 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.321e-05/0.3743, allocations: 1.875 kB / 0.7424 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.3743, allocations: 3.984 kB / 0.7424 GB, free: 15.64 MB / 0.5919 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.358e-05/0.3744, allocations: 112.3 kB / 0.7425 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.963e-06/0.3744, allocations: 0.6094 kB / 0.7425 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.437e-05/0.3745, allocations: 53.08 kB / 0.7426 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3745, allocations: 3.938 kB / 0.7426 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3745, allocations: 0 / 0.7426 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.3745, allocations: 1.438 kB / 0.7426 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.595e-05/0.3745, allocations: 96.3 kB / 0.7427 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3745, allocations: 0 / 0.7427 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.126e-05/0.3745, allocations: 9.125 kB / 0.7427 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.3745, allocations: 0 / 0.7427 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-06/0.3745, allocations: 0.9375 kB / 0.7427 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.3745, allocations: 1.375 kB / 0.7427 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3745, allocations: 7.875 kB / 0.7427 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.392e-05/0.3746, allocations: 71.02 kB / 0.7428 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.427e-06/0.3746, allocations: 0 / 0.7428 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.706e-06/0.3746, allocations: 2.188 kB / 0.7428 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.3746, allocations: 0 / 0.7428 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.174e-05/0.3746, allocations: 7.766 kB / 0.7428 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.3746, allocations: 0 / 0.7428 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 9.337e-06/0.3746, allocations: 78.91 kB / 0.7429 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.3746, allocations: 3.938 kB / 0.7429 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001883/0.3748, allocations: 4.062 kB / 0.7429 GB, free: 15.19 MB / 0.5919 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 9.595e-05/0.3749, allocations: 106.7 kB / 0.743 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 6.665e-05/0.375, allocations: 12.45 kB / 0.743 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.375, allocations: 0 / 0.743 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.424e-05/0.375, allocations: 5.375 kB / 0.743 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000121/0.3751, allocations: 1.469 kB / 0.743 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001432/0.3753, allocations: 87.84 kB / 0.7431 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.488e-05/0.3753, allocations: 57.03 kB / 0.7431 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.108e-05/0.3753, allocations: 5.438 kB / 0.7431 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.319e-05/0.3753, allocations: 10.39 kB / 0.7431 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of SimCode: time 3.31e-07/0.3753, allocations: 4.125 kB / 0.7432 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.002249/0.3776, allocations: 322.2 kB / 0.7435 GB, free: 14.83 MB / 0.5919 GB " [Timeout remaining time 660] 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 -s ida -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.303891648072749] Failed to read output from testmodel.py, exit status != 0: 0.38458207598887384 0.39446377400000004 0.018961497 Calling exit ...