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.001306/0.001306, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.00143/0.00143, allocations: 165 kB / 22.46 MB, free: 5.359 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.417/1.417, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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.002455/0.002455, allocations: 237.7 kB / 259.4 MB, free: 492 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 1.097/1.097, allocations: 138.4 MB / 454.3 MB, free: 2.02 MB / 366.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: Performance of FrontEnd - loaded program: time 3.697e-06/3.697e-06, allocations: 4 kB / 0.6468 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.448e-05, allocations: 2.281 kB / 0.6468 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001706/0.00174, allocations: 0.6032 MB / 0.6474 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002379/0.001978, allocations: 43.81 kB / 0.6475 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.64e-05/0.001995, allocations: 0 / 0.6475 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.092e-05/0.002005, allocations: 0 / 0.6475 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.002011, allocations: 0 / 0.6475 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.002241, allocations: 19.86 kB / 0.6475 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.826e-05/0.00229, allocations: 3.938 kB / 0.6475 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.78e-05/0.002337, allocations: 7.984 kB / 0.6475 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.567e-05/0.002363, allocations: 3.938 kB / 0.6475 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.896e-05/0.002382, allocations: 4 kB / 0.6475 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.002395, allocations: 4 kB / 0.6475 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.221e-05/0.002467, allocations: 11.98 kB / 0.6475 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.644e-06/0.002475, allocations: 0 / 0.6475 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.328e-05/0.002488, allocations: 0 / 0.6475 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.425e-05/0.002572, allocations: 15.97 kB / 0.6475 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.002574, allocations: 0 / 0.6475 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of FrontEnd: time 7.31e-07/0.002575, allocations: 0 / 0.6475 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.002578, allocations: 0 / 0.6475 GB, free: 4.281 MB / 0.5606 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.0003181/0.002896, allocations: 238.4 kB / 0.6478 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.002939, allocations: 13.33 kB / 0.6478 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.646e-05/0.002966, allocations: 4.938 kB / 0.6478 GB, free: 4 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.963e-05/0.003055, allocations: 105.8 kB / 0.6479 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.003068, allocations: 4.375 kB / 0.6479 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-06/0.003076, allocations: 384 / 0.6479 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.455e-05/0.00317, allocations: 30.27 kB / 0.6479 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.00318, allocations: 4.125 kB / 0.6479 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.003187, allocations: 384 / 0.6479 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.003195, allocations: 384 / 0.6479 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.928e-05/0.003234, allocations: 11.92 kB / 0.6479 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.003367, allocations: 101.4 kB / 0.648 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.458e-05/0.003431, allocations: 22.58 kB / 0.6481 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.893e-05/0.00345, allocations: 8.844 kB / 0.6481 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001288/0.003579, allocations: 15.98 kB / 0.6481 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.003611, allocations: 34.56 kB / 0.6481 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.003613, allocations: 0 / 0.6481 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001395/0.003752, allocations: 37.64 kB / 0.6481 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.003792, allocations: 55.39 kB / 0.6482 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.859e-05/0.003841, allocations: 93.86 kB / 0.6483 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.003857, allocations: 25.7 kB / 0.6483 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.003893, allocations: 81.44 kB / 0.6484 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.003912, allocations: 12.08 kB / 0.6484 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.00394, allocations: 9.719 kB / 0.6484 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.004079, allocations: 322.8 kB / 0.6487 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.085e-05/0.00409, allocations: 0 / 0.6487 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.021e-05/0.004101, allocations: 4 kB / 0.6487 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.932e-05/0.00414, allocations: 16.78 kB / 0.6487 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.004142, allocations: 0 / 0.6487 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.632e-05/0.004208, allocations: 37.7 kB / 0.6488 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.00422, allocations: 7.938 kB / 0.6488 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.004224, allocations: 4.094 kB / 0.6488 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.004239, allocations: 4 kB / 0.6488 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.212e-05/0.004291, allocations: 3.984 kB / 0.6488 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.004295, allocations: 0 / 0.6488 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.854e-05/0.004313, allocations: 7.938 kB / 0.6488 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-06/0.004317, allocations: 0 / 0.6488 GB, free: 2.816 MB / 0.5606 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.124e-05/0.004389, allocations: 105.8 kB / 0.6489 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-06/0.004396, allocations: 0 / 0.6489 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.849e-05/0.004485, allocations: 48.78 kB / 0.649 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.004487, allocations: 0 / 0.649 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.004498, allocations: 8.031 kB / 0.649 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.004501, allocations: 0 / 0.649 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.465e-05/0.004585, allocations: 101.3 kB / 0.6491 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.004586, allocations: 0 / 0.6491 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.6e-05/0.004612, allocations: 4 kB / 0.6491 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.004614, allocations: 0 / 0.6491 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.004624, allocations: 7.984 kB / 0.6491 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.004626, allocations: 0 / 0.6491 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.004626, allocations: 0 / 0.6491 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.881e-05/0.004715, allocations: 72.95 kB / 0.6491 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.524e-06/0.004723, allocations: 8.016 kB / 0.6491 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-06/0.004731, allocations: 0 / 0.6491 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.072e-05/0.004742, allocations: 4 kB / 0.6491 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.004769, allocations: 0 / 0.6491 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.004772, allocations: 0 / 0.6491 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.859e-05/0.00481, allocations: 75.28 kB / 0.6492 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/0.00481, allocations: 0 / 0.6492 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000192/0.005002, allocations: 4 kB / 0.6492 GB, free: 2.32 MB / 0.5606 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.0001735/0.005176, allocations: 107.2 kB / 0.6493 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.791e-05/0.005254, allocations: 16 kB / 0.6493 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.005255, allocations: 0 / 0.6493 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.709e-05/0.005272, allocations: 4 kB / 0.6493 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.005405, allocations: 6.594 kB / 0.6494 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002412/0.005646, allocations: 88.84 kB / 0.6494 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.071e-05/0.005697, allocations: 55.36 kB / 0.6495 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.381e-05/0.00571, allocations: 0 / 0.6495 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.018e-05/0.005731, allocations: 12.5 kB / 0.6495 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of SimCode: time 3.91e-07/0.005731, allocations: 0 / 0.6495 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of Templates: time 0.00286/0.008591, allocations: 348.6 kB / 0.6498 GB, free: 1.641 MB / 0.5606 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.742833506315947] Failed to read output from testmodel.py, exit status != 0: 0.01732524111866951 0.276396852 0.271677871 Calling exit ...