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) 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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 112.4 kB / 16.37 MB, free: 6.348 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.001227/0.001227, allocations: 188.7 kB / 17.3 MB, free: 5.895 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.235/1.235, 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.002163/0.002162, allocations: 292.8 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8596/0.8596, allocations: 169.3 MB / 0.4989 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 95.86 kB / 0.682 GB, free: 7.035 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4203, allocations: 86.98 MB / 0.767 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002587/0.4229, allocations: 1.509 MB / 0.7685 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003193/0.4233, allocations: 124.5 kB / 0.7686 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.039e-05/0.4233, allocations: 0 / 0.7686 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.908e-05/0.4234, allocations: 3.938 kB / 0.7686 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.925e-05/0.4234, allocations: 3.938 kB / 0.7686 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001795/0.4236, allocations: 19.98 kB / 0.7686 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.36e-05/0.4237, allocations: 31.86 kB / 0.7686 GB, free: 2.266 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.403e-05/0.4237, allocations: 15.98 kB / 0.7687 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.44e-05/0.4238, allocations: 7.984 kB / 0.7687 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.4238, allocations: 15.92 kB / 0.7687 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.4239, allocations: 4 kB / 0.7687 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.4239, allocations: 19.92 kB / 0.7687 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.274e-05/0.4239, allocations: 4 kB / 0.7687 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.585e-05/0.424, allocations: 15.92 kB / 0.7687 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 9.163e-05/0.4241, allocations: 35.89 kB / 0.7687 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.4241, allocations: 0 / 0.7687 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.494e-06/0.4241, allocations: 0 / 0.7687 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.4241, allocations: 7.938 kB / 0.7688 GB, free: 2.141 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003934/0.4245, allocations: 347.1 kB / 0.7691 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.4245, allocations: 12.02 kB / 0.7691 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.741e-05/0.4246, allocations: 4.938 kB / 0.7691 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.4247, allocations: 160.4 kB / 0.7693 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.4247, allocations: 4.375 kB / 0.7693 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.4247, allocations: 8.375 kB / 0.7693 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.4249, allocations: 62.22 kB / 0.7693 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.4249, allocations: 192 / 0.7693 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.4249, allocations: 3.938 kB / 0.7693 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.4249, allocations: 0 / 0.7693 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.4251, allocations: 43.95 kB / 0.7694 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003046/0.4254, allocations: 263.4 kB / 0.7696 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.4257, allocations: 70.45 kB / 0.7697 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.849e-05/0.4258, allocations: 24.91 kB / 0.7697 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 9.496e-05/0.4259, allocations: 81.09 kB / 0.7698 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.4259, allocations: 34.56 kB / 0.7698 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.4259, allocations: 0 / 0.7698 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.000351/0.4263, allocations: 97.58 kB / 0.7699 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.664e-05/0.4263, allocations: 55.39 kB / 0.77 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.095e-05/0.4264, allocations: 97.86 kB / 0.7701 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.4264, allocations: 25.7 kB / 0.7701 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.98e-05/0.4265, allocations: 84.14 kB / 0.7702 GB, free: 488 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.297e-05/0.4265, allocations: 7.891 kB / 0.7702 GB, free: 480 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.155e-05/0.4265, allocations: 17.72 kB / 0.7702 GB, free: 456 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.4266, allocations: 314.8 kB / 0.7705 GB, free: 132 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.929e-05/0.4267, allocations: 23.97 kB / 0.7705 GB, free: 108 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.376e-05/0.4268, allocations: 15.98 kB / 0.7705 GB, free: 92 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.4269, allocations: 52.75 kB / 0.7706 GB, free: 36 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.427, allocations: 3.938 kB / 0.7706 GB, free: 32 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002096/0.4272, allocations: 73.56 kB / 0.7707 GB, free: 15.95 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4272, allocations: 8 kB / 0.7707 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.4272, allocations: 0 / 0.7707 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.4272, allocations: 0 / 0.7707 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.738e-05/0.4273, allocations: 11.98 kB / 0.7707 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.4273, allocations: 3.938 kB / 0.7707 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.329e-05/0.4274, allocations: 11.92 kB / 0.7707 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.4274, allocations: 4 kB / 0.7707 GB, free: 15.91 MB / 0.545 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 7.503e-05/0.4275, allocations: 120.2 kB / 0.7708 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.228e-05/0.4275, allocations: 0 / 0.7708 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002363/0.4277, allocations: 85.08 kB / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.4277, allocations: 0 / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.4277, allocations: 0 / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.4278, allocations: 0 / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.4279, allocations: 177.5 kB / 0.7711 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.4279, allocations: 0 / 0.7711 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.056e-05/0.428, allocations: 12.55 kB / 0.7711 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.428, allocations: 4 kB / 0.7711 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.428, allocations: 0 / 0.7711 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.428, allocations: 0 / 0.7711 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.428, allocations: 4 kB / 0.7711 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.4283, allocations: 179.4 kB / 0.7713 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.203e-05/0.4283, allocations: 81.02 kB / 0.7713 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.4283, allocations: 4 kB / 0.7713 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.252e-05/0.4284, allocations: 11.98 kB / 0.7713 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.4285, allocations: 7.984 kB / 0.7714 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.4285, allocations: 0 / 0.7714 GB, free: 15.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.15e-05/0.4285, allocations: 83.28 kB / 0.7714 GB, free: 15.06 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4285, allocations: 0 / 0.7714 GB, free: 15.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000213/0.4287, allocations: 8 kB / 0.7714 GB, free: 15.05 MB / 0.545 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.0001183/0.4289, allocations: 103.2 kB / 0.7715 GB, free: 14.94 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002209/0.4291, allocations: 47.94 kB / 0.7716 GB, free: 14.89 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4291, allocations: 0 / 0.7716 GB, free: 14.89 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.115e-05/0.4292, allocations: 27.92 kB / 0.7716 GB, free: 14.87 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.4294, allocations: 9.031 kB / 0.7716 GB, free: 14.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002666/0.4297, allocations: 135.3 kB / 0.7717 GB, free: 14.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002089/0.4299, allocations: 0.6807 MB / 0.7724 GB, free: 13.99 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.43, allocations: 19.42 kB / 0.7724 GB, free: 13.97 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.43, allocations: 3.938 kB / 0.7724 GB, free: 13.97 MB / 0.545 GB Notification: Performance of Templates: time 0.00188/0.4319, allocations: 0.7317 MB / 0.7731 GB, free: 13.24 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (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)