Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7983/0.7983, allocations: 128.7 MB / 143.7 MB, free: 2.332 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 178.3 kB / 173.7 MB, free: 6.137 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.786/1.786, allocations: 205.4 MB / 409 MB, free: 10.52 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 83.92 kB / 486.5 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004837/0.0004836, allocations: 9.406 kB / 0.5604 GB, free: 97.45 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1834, allocations: 76.77 MB / 0.6354 GB, free: 30.47 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1734/0.3569, allocations: 102.9 MB / 0.7358 GB, free: 7.473 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.3573, allocations: 79.95 kB / 0.7359 GB, free: 7.395 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.003359/0.3606, allocations: 0.9411 MB / 0.7368 GB, free: 6.445 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.026e-06/0.3607, allocations: 4 kB / 0.7368 GB, free: 6.441 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.3607, allocations: 0 / 0.7368 GB, free: 6.441 MB / 0.5105 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.0006181/0.3613, allocations: 351.2 kB / 0.7372 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.938e-05/0.3614, allocations: 8.031 kB / 0.7372 GB, free: 6.043 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.61e-05/0.3615, allocations: 34.56 kB / 0.7372 GB, free: 6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.3615, allocations: 7.891 kB / 0.7372 GB, free: 5.992 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.3617, allocations: 175 kB / 0.7374 GB, free: 5.781 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.3617, allocations: 4 kB / 0.7374 GB, free: 5.777 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.3617, allocations: 0 / 0.7374 GB, free: 5.777 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.362, allocations: 61.66 kB / 0.7375 GB, free: 5.711 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.362, allocations: 0 / 0.7375 GB, free: 5.711 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.362, allocations: 4 kB / 0.7375 GB, free: 5.707 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.362, allocations: 0 / 0.7375 GB, free: 5.707 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.3622, allocations: 55.91 kB / 0.7375 GB, free: 5.652 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.3627, allocations: 284.9 kB / 0.7378 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.363, allocations: 62.53 kB / 0.7378 GB, free: 5.254 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.3632, allocations: 85.17 kB / 0.7379 GB, free: 5.152 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.3632, allocations: 34.56 kB / 0.738 GB, free: 5.109 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3632, allocations: 0 / 0.738 GB, free: 5.109 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0004596/0.3637, allocations: 117.5 kB / 0.7381 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.3638, allocations: 55.41 kB / 0.7381 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.3639, allocations: 93 kB / 0.7382 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.3639, allocations: 29.7 kB / 0.7382 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.851e-05/0.364, allocations: 88.06 kB / 0.7383 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.364, allocations: 7.906 kB / 0.7383 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.3641, allocations: 4 kB / 0.7383 GB, free: 4.688 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3642, allocations: 310.8 kB / 0.7386 GB, free: 4.375 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.3643, allocations: 27.92 kB / 0.7387 GB, free: 4.348 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.91e-05/0.3644, allocations: 31.97 kB / 0.7387 GB, free: 4.316 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.274e-05/0.3645, allocations: 15.98 kB / 0.7387 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3646, allocations: 0 / 0.7387 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002448/0.3648, allocations: 93.58 kB / 0.7388 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.3648, allocations: 8 kB / 0.7388 GB, free: 4.195 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3649, allocations: 0 / 0.7388 GB, free: 4.195 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3649, allocations: 0 / 0.7388 GB, free: 4.195 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.384e-05/0.365, allocations: 15.98 kB / 0.7388 GB, free: 4.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.365, allocations: 3.953 kB / 0.7388 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.218e-05/0.3651, allocations: 8 kB / 0.7388 GB, free: 4.168 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.3651, allocations: 0 / 0.7388 GB, free: 4.168 MB / 0.5105 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 (fac.y,fac.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.3652, allocations: 120 kB / 0.7389 GB, free: 4.043 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.3652, allocations: 3.906 kB / 0.7389 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002897/0.3655, allocations: 97.08 kB / 0.739 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.3655, allocations: 0.5625 kB / 0.739 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.3655, allocations: 0 / 0.739 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3656, allocations: 7.953 kB / 0.739 GB, free: 3.926 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001584/0.3657, allocations: 165.6 kB / 0.7392 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.3657, allocations: 0 / 0.7392 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.063e-05/0.3658, allocations: 15.98 kB / 0.7392 GB, free: 3.699 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3658, allocations: 0 / 0.7392 GB, free: 3.699 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3658, allocations: 7.984 kB / 0.7392 GB, free: 3.691 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.3658, allocations: 0 / 0.7392 GB, free: 3.691 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3659, allocations: 3.938 kB / 0.7392 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.3661, allocations: 175.5 kB / 0.7394 GB, free: 3.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.3662, allocations: 89.09 kB / 0.7395 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.3662, allocations: 0 / 0.7395 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.35e-05/0.3663, allocations: 4 kB / 0.7395 GB, free: 3.391 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.3663, allocations: 15.92 kB / 0.7395 GB, free: 3.375 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.3664, allocations: 0 / 0.7395 GB, free: 3.375 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.755e-05/0.3664, allocations: 83.27 kB / 0.7396 GB, free: 3.293 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3664, allocations: 0 / 0.7396 GB, free: 3.293 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002244/0.3667, allocations: 19.91 kB / 0.7396 GB, free: 3.273 MB / 0.5105 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,fac.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006299/0.3673, allocations: 0.7239 MB / 0.7403 GB, free: 2.523 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002215/0.3675, allocations: 59.89 kB / 0.7404 GB, free: 2.465 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3675, allocations: 0 / 0.7404 GB, free: 2.465 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.3676, allocations: 35.97 kB / 0.7404 GB, free: 2.43 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001864/0.3678, allocations: 14.38 kB / 0.7404 GB, free: 2.418 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000441/0.3683, allocations: 154.2 kB / 0.7406 GB, free: 2.227 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.3686, allocations: 0.6848 MB / 0.7412 GB, free: 1.516 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 3.505e-05/0.3686, allocations: 4 kB / 0.7412 GB, free: 1.512 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/0.3687, allocations: 11.44 kB / 0.7412 GB, free: 1.5 MB / 0.5105 GB Notification: Performance of SimCode: time 2.21e-07/0.3687, allocations: 0 / 0.7412 GB, free: 1.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01236/0.381, allocations: 1.278 MB / 0.7425 GB, free: 356 kB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/0.3813, allocations: 188 kB / 0.7427 GB, free: 104 kB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/1.909, allocations: 0 / 0.7427 GB, free: 104 kB / 0.5105 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)