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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 109.3 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 185.7 kB / 17.35 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002009, allocations: 294.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.894/0.894, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 91.86 kB / 0.6822 GB, free: 6.898 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3485, allocations: 86.97 MB / 0.7671 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001447/0.35, allocations: 0.5864 MB / 0.7677 GB, free: 3.477 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002156/0.3502, allocations: 47.83 kB / 0.7677 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.308e-05/0.3503, allocations: 4 kB / 0.7677 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.959e-06/0.3503, allocations: 0 / 0.7677 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.993e-06/0.3503, allocations: 3.938 kB / 0.7677 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.3505, allocations: 8 kB / 0.7677 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.09e-05/0.3505, allocations: 4 kB / 0.7677 GB, free: 3.41 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.583e-05/0.3506, allocations: 11.98 kB / 0.7677 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.173e-05/0.3506, allocations: 0 / 0.7677 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 1.753e-05/0.3506, allocations: 0 / 0.7677 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.769e-06/0.3506, allocations: 0 / 0.7677 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.084e-05/0.3507, allocations: 11.94 kB / 0.7678 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.054e-05/0.3507, allocations: 7.984 kB / 0.7678 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.487e-05/0.3507, allocations: 0 / 0.7678 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 6.977e-05/0.3508, allocations: 11.98 kB / 0.7678 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3508, allocations: 0 / 0.7678 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3508, allocations: 0 / 0.7678 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.3508, allocations: 0 / 0.7678 GB, free: 3.367 MB / 0.5294 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.0002557/0.3511, allocations: 315.6 kB / 0.7681 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.3511, allocations: 11.97 kB / 0.7681 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.35e-05/0.3512, allocations: 0.9375 kB / 0.7681 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.02e-05/0.3512, allocations: 168.3 kB / 0.7682 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.3513, allocations: 384 / 0.7682 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.3513, allocations: 384 / 0.7682 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.435e-05/0.3514, allocations: 38.25 kB / 0.7683 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.3514, allocations: 192 / 0.7683 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.3514, allocations: 3.938 kB / 0.7683 GB, free: 2.746 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3514, allocations: 7.938 kB / 0.7683 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.805e-05/0.3514, allocations: 4 kB / 0.7683 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.3516, allocations: 145.7 kB / 0.7684 GB, free: 2.543 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.283e-05/0.3516, allocations: 30.53 kB / 0.7685 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.509e-05/0.3516, allocations: 4.859 kB / 0.7685 GB, free: 2.496 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.3518, allocations: 81.17 kB / 0.7685 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.3518, allocations: 38.56 kB / 0.7686 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3518, allocations: 0 / 0.7686 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001155/0.3519, allocations: 41.62 kB / 0.7686 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.319e-05/0.352, allocations: 55.41 kB / 0.7687 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.111e-05/0.352, allocations: 93.86 kB / 0.7688 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.352, allocations: 25.7 kB / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.228e-05/0.352, allocations: 80.14 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.3521, allocations: 11.64 kB / 0.7689 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.3521, allocations: 21.83 kB / 0.7689 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.595e-05/0.3522, allocations: 310.8 kB / 0.7692 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.16e-05/0.3522, allocations: 4 kB / 0.7692 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.685e-06/0.3522, allocations: 4 kB / 0.7692 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.88e-05/0.3523, allocations: 8.859 kB / 0.7692 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3523, allocations: 0 / 0.7692 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.571e-05/0.3523, allocations: 41.69 kB / 0.7693 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.3524, allocations: 8.094 kB / 0.7693 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-06/0.3524, allocations: 4 kB / 0.7693 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.3524, allocations: 3.938 kB / 0.7693 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.926e-05/0.3524, allocations: 11.94 kB / 0.7693 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.3524, allocations: 0 / 0.7693 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.255e-05/0.3525, allocations: 0 / 0.7693 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-06/0.3525, allocations: 0 / 0.7693 GB, free: 1.582 MB / 0.5294 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 5.656e-05/0.3525, allocations: 105.8 kB / 0.7694 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-06/0.3525, allocations: 4 kB / 0.7694 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.941e-05/0.3526, allocations: 44.81 kB / 0.7694 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3526, allocations: 7.938 kB / 0.7694 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3526, allocations: 0 / 0.7694 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.764e-05/0.3527, allocations: 81.09 kB / 0.7695 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.386e-06/0.3527, allocations: 3.938 kB / 0.7695 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.3527, allocations: 0 / 0.7695 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.3527, allocations: 11.94 kB / 0.7695 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.859e-05/0.3528, allocations: 116.9 kB / 0.7696 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001118/0.3529, allocations: 214.8 kB / 0.7698 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.913e-05/0.353, allocations: 7.984 kB / 0.7699 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 2.224e-05/0.353, allocations: 75.28 kB / 0.7699 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of Backend: time 2.1e-07/0.353, allocations: 4 kB / 0.7699 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003254/0.3533, allocations: 96.94 kB / 0.77 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of SimCode: time 0.0002741/0.3536, allocations: 0.5332 MB / 0.7705 GB, free: 184 kB / 0.5294 GB Notification: Performance of Templates: time 0.001925/0.3555, allocations: 358.3 kB / 0.7709 GB, free: 15.83 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (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)