Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_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.001206/0.001206, allocations: 104.9 kB / 16.27 MB, free: 5.93 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.001219/0.001219, allocations: 187.4 kB / 17.2 MB, free: 5.574 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.331/1.331, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7285/0.7285, allocations: 122.9 MB / 413.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 71.89 kB / 0.4912 GB, free: 7.344 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3925, allocations: 77.93 MB / 0.5673 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002733/0.3952, allocations: 1.487 MB / 0.5687 GB, free: 31.75 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003309/0.3956, allocations: 128.5 kB / 0.5689 GB, free: 31.67 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.59e-05/0.3956, allocations: 0 / 0.5689 GB, free: 31.67 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.3957, allocations: 5.125 kB / 0.5689 GB, free: 31.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.643e-05/0.3957, allocations: 1.094 kB / 0.5689 GB, free: 31.66 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.396, allocations: 32.17 kB / 0.5689 GB, free: 31.64 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.537e-05/0.396, allocations: 31.95 kB / 0.5689 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.636e-05/0.3961, allocations: 10.78 kB / 0.5689 GB, free: 31.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.112e-05/0.3962, allocations: 11.86 kB / 0.569 GB, free: 31.62 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.797e-05/0.3962, allocations: 20.8 kB / 0.569 GB, free: 31.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.3963, allocations: 2.469 kB / 0.569 GB, free: 31.61 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.3963, allocations: 8.812 kB / 0.569 GB, free: 31.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.3963, allocations: 6.859 kB / 0.569 GB, free: 31.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.672e-05/0.3964, allocations: 13.55 kB / 0.569 GB, free: 31.6 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.3965, allocations: 34.78 kB / 0.569 GB, free: 31.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3965, allocations: 1.062 kB / 0.569 GB, free: 31.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3965, allocations: 1.438 kB / 0.569 GB, free: 31.58 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.3965, allocations: 0 / 0.569 GB, free: 31.58 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003906/0.3969, allocations: 343.5 kB / 0.5694 GB, free: 31.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.397, allocations: 11.62 kB / 0.5694 GB, free: 31.22 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.093e-05/0.397, allocations: 35.84 kB / 0.5694 GB, free: 31.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.199e-05/0.397, allocations: 2.828 kB / 0.5694 GB, free: 31.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.169e-05/0.3971, allocations: 176.2 kB / 0.5696 GB, free: 30.97 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3971, allocations: 1.656 kB / 0.5696 GB, free: 30.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-06/0.3971, allocations: 3.672 kB / 0.5696 GB, free: 30.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.3973, allocations: 63.16 kB / 0.5696 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3974, allocations: 3.938 kB / 0.5697 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.3974, allocations: 1.75 kB / 0.5697 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3974, allocations: 5.25 kB / 0.5697 GB, free: 30.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.3976, allocations: 43.45 kB / 0.5697 GB, free: 30.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.3979, allocations: 261.4 kB / 0.57 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.3982, allocations: 61.73 kB / 0.57 GB, free: 30.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.917e-05/0.3983, allocations: 32.64 kB / 0.57 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001045/0.3985, allocations: 82.92 kB / 0.5701 GB, free: 30.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.3985, allocations: 30.56 kB / 0.5701 GB, free: 30.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.413e-06/0.3985, allocations: 1.312 kB / 0.5701 GB, free: 30.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.000382/0.3989, allocations: 90.06 kB / 0.5702 GB, free: 30.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.3989, allocations: 56 kB / 0.5703 GB, free: 30.35 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.308e-05/0.399, allocations: 103.3 kB / 0.5704 GB, free: 30.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.399, allocations: 26.61 kB / 0.5704 GB, free: 30.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.826e-05/0.399, allocations: 89.72 kB / 0.5705 GB, free: 30.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.43e-05/0.399, allocations: 6.734 kB / 0.5705 GB, free: 30.12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.3991, allocations: 19.31 kB / 0.5705 GB, free: 30.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.628e-05/0.3991, allocations: 313.8 kB / 0.5708 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.394e-05/0.3992, allocations: 20.72 kB / 0.5708 GB, free: 29.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.46e-05/0.3993, allocations: 16.64 kB / 0.5709 GB, free: 29.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.3995, allocations: 50.47 kB / 0.5709 GB, free: 29.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3995, allocations: 0.9688 kB / 0.5709 GB, free: 29.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002125/0.3997, allocations: 78.64 kB / 0.571 GB, free: 29.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3997, allocations: 5.672 kB / 0.571 GB, free: 29.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3998, allocations: 1.719 kB / 0.571 GB, free: 29.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3998, allocations: 0.5 kB / 0.571 GB, free: 29.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.168e-05/0.3999, allocations: 11.78 kB / 0.571 GB, free: 29.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3999, allocations: 0.7031 kB / 0.571 GB, free: 29.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.684e-05/0.3999, allocations: 7.672 kB / 0.571 GB, free: 29.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.3999, allocations: 7.031 kB / 0.571 GB, free: 29.72 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 (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 5.357e-05/0.4, allocations: 116.5 kB / 0.5711 GB, free: 29.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.4, allocations: 2.281 kB / 0.5711 GB, free: 29.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/0.4003, allocations: 79.05 kB / 0.5712 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.4003, allocations: 2.297 kB / 0.5712 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4003, allocations: 0.5312 kB / 0.5712 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4003, allocations: 2 kB / 0.5712 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.4005, allocations: 170.5 kB / 0.5714 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4005, allocations: 1.406 kB / 0.5714 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.4005, allocations: 14.69 kB / 0.5714 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.4006, allocations: 1.562 kB / 0.5714 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.4006, allocations: 6.219 kB / 0.5714 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.4006, allocations: 0.9062 kB / 0.5714 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4006, allocations: 0 / 0.5714 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.4008, allocations: 179.5 kB / 0.5716 GB, free: 29.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/0.4008, allocations: 83.5 kB / 0.5716 GB, free: 29.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.4009, allocations: 2.219 kB / 0.5716 GB, free: 29.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.401, allocations: 6.266 kB / 0.5717 GB, free: 29.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.357e-05/0.401, allocations: 11.64 kB / 0.5717 GB, free: 29.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-06/0.401, allocations: 1.094 kB / 0.5717 GB, free: 29.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.227e-05/0.401, allocations: 80.09 kB / 0.5717 GB, free: 29.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.401, allocations: 0 / 0.5717 GB, free: 29.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00023/0.4013, allocations: 8.547 kB / 0.5718 GB, free: 29.02 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.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.0004604/0.4018, allocations: 0.7138 MB / 0.5724 GB, free: 28.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000236/0.402, allocations: 48.25 kB / 0.5725 GB, free: 28.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.402, allocations: 0 / 0.5725 GB, free: 28.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.4021, allocations: 33 kB / 0.5725 GB, free: 28.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.4024, allocations: 1.891 kB / 0.5725 GB, free: 28.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004236/0.4028, allocations: 153.1 kB / 0.5727 GB, free: 28.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.4029, allocations: 0.6764 MB / 0.5733 GB, free: 27.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.239e-05/0.403, allocations: 5.391 kB / 0.5733 GB, free: 27.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.569e-05/0.403, allocations: 11.92 kB / 0.5733 GB, free: 27.46 MB / 446.1 MB Notification: Performance of SimCode: time 4.5e-07/0.403, allocations: 0 / 0.5733 GB, free: 27.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.4213, allocations: 1.548 MB / 0.5749 GB, free: 27.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.316/7.738, allocations: 13.05 kB / 0.5749 GB, free: 27.11 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)