Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 105.3 kB / 16.27 MB, free: 5.984 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.001152/0.001152, allocations: 189.8 kB / 17.2 MB, free: 5.613 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.342/1.342, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7513/0.7513, allocations: 122.9 MB / 413.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.89 kB / 0.4912 GB, free: 7.367 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3662, allocations: 77.93 MB / 0.5673 GB, free: 32.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001921/0.3682, allocations: 0.5771 MB / 0.5679 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002394/0.3684, allocations: 45.78 kB / 0.5679 GB, free: 32.22 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.761e-05/0.3685, allocations: 2 kB / 0.5679 GB, free: 32.22 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.228e-05/0.3685, allocations: 3.938 kB / 0.5679 GB, free: 32.22 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.789e-06/0.3685, allocations: 1.469 kB / 0.5679 GB, free: 32.22 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.3688, allocations: 10.53 kB / 0.5679 GB, free: 32.21 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.123e-05/0.3688, allocations: 6.859 kB / 0.5679 GB, free: 32.21 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.011e-05/0.3689, allocations: 5.641 kB / 0.5679 GB, free: 32.21 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.3689, allocations: 7.219 kB / 0.5679 GB, free: 32.2 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.225e-05/0.3689, allocations: 1.125 kB / 0.5679 GB, free: 32.2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.3689, allocations: 0 / 0.5679 GB, free: 32.2 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.151e-05/0.369, allocations: 10.55 kB / 0.5679 GB, free: 32.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.083e-05/0.369, allocations: 4.281 kB / 0.5679 GB, free: 32.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.768e-05/0.3691, allocations: 3.938 kB / 0.568 GB, free: 32.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.368e-05/0.3692, allocations: 15.03 kB / 0.568 GB, free: 32.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3692, allocations: 0 / 0.568 GB, free: 32.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3692, allocations: 0 / 0.568 GB, free: 32.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.3692, allocations: 1.5 kB / 0.568 GB, free: 32.19 MB / 446.1 MB 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.0002554/0.3695, allocations: 310.1 kB / 0.5683 GB, free: 31.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.3695, allocations: 12 kB / 0.5683 GB, free: 31.84 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.665e-05/0.3695, allocations: 35.78 kB / 0.5683 GB, free: 31.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.605e-05/0.3696, allocations: 5.5 kB / 0.5683 GB, free: 31.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.018e-05/0.3696, allocations: 163.2 kB / 0.5685 GB, free: 31.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.3697, allocations: 1.375 kB / 0.5685 GB, free: 31.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.115e-06/0.3697, allocations: 1.156 kB / 0.5685 GB, free: 31.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.463e-05/0.3698, allocations: 33.61 kB / 0.5685 GB, free: 31.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3698, allocations: 3.938 kB / 0.5685 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.3698, allocations: 0.5625 kB / 0.5685 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.3698, allocations: 0 / 0.5685 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.652e-05/0.3699, allocations: 6.625 kB / 0.5685 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.37, allocations: 150.9 kB / 0.5687 GB, free: 31.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.269e-05/0.3701, allocations: 27.42 kB / 0.5687 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.291e-05/0.3701, allocations: 12.64 kB / 0.5687 GB, free: 31.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000175/0.3703, allocations: 83 kB / 0.5688 GB, free: 31.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.3703, allocations: 31.88 kB / 0.5688 GB, free: 31.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.3703, allocations: 1.062 kB / 0.5688 GB, free: 31.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.000163/0.3705, allocations: 49.77 kB / 0.5689 GB, free: 31.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.3705, allocations: 54.11 kB / 0.5689 GB, free: 31.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.103e-05/0.3706, allocations: 91.27 kB / 0.569 GB, free: 30.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.3706, allocations: 25.7 kB / 0.569 GB, free: 30.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.857e-05/0.3706, allocations: 80.75 kB / 0.5691 GB, free: 30.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.3706, allocations: 5.094 kB / 0.5691 GB, free: 30.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.3707, allocations: 17.75 kB / 0.5691 GB, free: 30.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.101e-05/0.3707, allocations: 313.3 kB / 0.5694 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.924e-05/0.3708, allocations: 3.391 kB / 0.5694 GB, free: 30.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.07e-05/0.3708, allocations: 3.172 kB / 0.5694 GB, free: 30.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.865e-05/0.3708, allocations: 14.91 kB / 0.5694 GB, free: 30.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3708, allocations: 0 / 0.5694 GB, free: 30.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.013e-05/0.3709, allocations: 40.42 kB / 0.5695 GB, free: 30.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.3709, allocations: 12.83 kB / 0.5695 GB, free: 30.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3709, allocations: 3.938 kB / 0.5695 GB, free: 30.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.371, allocations: 3.141 kB / 0.5695 GB, free: 30.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-05/0.371, allocations: 3.297 kB / 0.5695 GB, free: 30.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-06/0.371, allocations: 1.281 kB / 0.5695 GB, free: 30.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.685e-05/0.3711, allocations: 3.406 kB / 0.5695 GB, free: 30.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.3711, allocations: 0.75 kB / 0.5695 GB, free: 30.49 MB / 446.1 MB 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.268e-05/0.3712, allocations: 113.8 kB / 0.5696 GB, free: 30.37 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-06/0.3712, allocations: 0.625 kB / 0.5696 GB, free: 30.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.3713, allocations: 50.12 kB / 0.5697 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3713, allocations: 0 / 0.5697 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.3713, allocations: 5.125 kB / 0.5697 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3713, allocations: 0 / 0.5697 GB, free: 30.33 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.541e-05/0.3714, allocations: 150.6 kB / 0.5698 GB, free: 30.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.3714, allocations: 0 / 0.5698 GB, free: 30.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.383e-05/0.3715, allocations: 5.234 kB / 0.5698 GB, free: 30.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3715, allocations: 0.5156 kB / 0.5698 GB, free: 30.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3715, allocations: 5.125 kB / 0.5698 GB, free: 30.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3715, allocations: 5.984 kB / 0.5698 GB, free: 30.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3715, allocations: 1.375 kB / 0.5698 GB, free: 30.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.562e-05/0.3716, allocations: 62.2 kB / 0.5699 GB, free: 30.06 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.379e-05/0.3716, allocations: 77.11 kB / 0.57 GB, free: 29.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.3717, allocations: 7.688 kB / 0.57 GB, free: 29.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.3717, allocations: 1.031 kB / 0.57 GB, free: 29.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.3717, allocations: 6.766 kB / 0.57 GB, free: 29.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.3717, allocations: 1.031 kB / 0.57 GB, free: 29.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.238e-05/0.3718, allocations: 75.78 kB / 0.57 GB, free: 29.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3718, allocations: 0.875 kB / 0.57 GB, free: 29.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000232/0.372, allocations: 4.438 kB / 0.5701 GB, free: 29.89 MB / 446.1 MB 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.0004241/0.3724, allocations: 0.6104 MB / 0.5706 GB, free: 29.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.3726, allocations: 14.53 kB / 0.5707 GB, free: 29.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3726, allocations: 0 / 0.5707 GB, free: 29.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.115e-05/0.3726, allocations: 9 kB / 0.5707 GB, free: 29.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.3728, allocations: 1.812 kB / 0.5707 GB, free: 29.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003955/0.3732, allocations: 110.5 kB / 0.5708 GB, free: 29.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.3734, allocations: 0.6773 MB / 0.5714 GB, free: 28.44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.758e-05/0.3734, allocations: 2.375 kB / 0.5714 GB, free: 28.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.634e-05/0.3735, allocations: 10.47 kB / 0.5715 GB, free: 28.43 MB / 446.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3735, allocations: 3.938 kB / 0.5715 GB, free: 28.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05068/0.4242, allocations: 1.029 MB / 0.5725 GB, free: 28.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/8.078, allocations: 14.33 kB / 0.5725 GB, free: 28.11 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)