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.0006868/0.0006868, allocations: 93.09 kB / 15.7 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007168/0.0007167, allocations: 178.5 kB / 16.58 MB, free: 5.684 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.173/1.173, allocations: 223.3 MB / 240.6 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6172/0.6172, allocations: 113.7 MB / 405.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002903/0.0002903, allocations: 8 kB / 493.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1184, allocations: 77.12 MB / 0.5569 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0005514/0.119, allocations: 299.1 kB / 0.5572 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000194/0.1192, allocations: 43.89 kB / 0.5572 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.775e-06/0.1192, allocations: 0 / 0.5572 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.904e-06/0.1193, allocations: 0 / 0.5572 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.849e-06/0.1193, allocations: 0 / 0.5572 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000143/0.1194, allocations: 11.98 kB / 0.5572 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 2.862e-05/0.1195, allocations: 4 kB / 0.5573 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.761e-05/0.1195, allocations: 4 kB / 0.5573 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.112e-05/0.1195, allocations: 0 / 0.5573 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.422e-05/0.1195, allocations: 3.984 kB / 0.5573 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.103e-06/0.1196, allocations: 3.938 kB / 0.5573 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.327e-05/0.1196, allocations: 11.98 kB / 0.5573 GB, free: 11.26 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.101e-06/0.1196, allocations: 7.938 kB / 0.5573 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.82e-05/0.1196, allocations: 25.7 kB / 0.5573 GB, free: 11.22 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 4.332e-05/0.1197, allocations: 0 / 0.5573 GB, free: 11.22 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1197, allocations: 0 / 0.5573 GB, free: 11.22 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1197, allocations: 0 / 0.5573 GB, free: 11.22 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.026e-06/0.1197, allocations: 8 kB / 0.5573 GB, free: 11.21 MB / 430.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.0002205/0.1199, allocations: 313.4 kB / 0.5576 GB, free: 10.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.12, allocations: 12.09 kB / 0.5576 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.972e-05/0.12, allocations: 30.56 kB / 0.5577 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.463e-05/0.12, allocations: 3.938 kB / 0.5577 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.714e-05/0.1201, allocations: 163.1 kB / 0.5578 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.314e-06/0.1202, allocations: 0 / 0.5578 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.1202, allocations: 0 / 0.5578 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.1203, allocations: 41.64 kB / 0.5579 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1203, allocations: 0 / 0.5579 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.1203, allocations: 3.938 kB / 0.5579 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1203, allocations: 4 kB / 0.5579 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.725e-05/0.1204, allocations: 0 / 0.5579 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.1205, allocations: 153.7 kB / 0.558 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.796e-05/0.1206, allocations: 18.61 kB / 0.558 GB, free: 10.33 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.371e-05/0.1206, allocations: 16.92 kB / 0.558 GB, free: 10.31 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.1208, allocations: 81.11 kB / 0.5581 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.1208, allocations: 38.55 kB / 0.5582 GB, free: 10.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1208, allocations: 0 / 0.5582 GB, free: 10.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001539/0.121, allocations: 45.59 kB / 0.5582 GB, free: 10.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.121, allocations: 51.41 kB / 0.5582 GB, free: 10.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.923e-05/0.121, allocations: 89.86 kB / 0.5583 GB, free: 9.953 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.1211, allocations: 25.7 kB / 0.5584 GB, free: 9.922 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.1211, allocations: 84.27 kB / 0.5584 GB, free: 9.836 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.1211, allocations: 3.906 kB / 0.5584 GB, free: 9.832 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.245e-06/0.1212, allocations: 4 kB / 0.5584 GB, free: 9.828 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1213, allocations: 314.8 kB / 0.5587 GB, free: 9.512 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.127e-05/0.1213, allocations: 7.938 kB / 0.5588 GB, free: 9.504 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.794e-06/0.1213, allocations: 4 kB / 0.5588 GB, free: 9.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.927e-05/0.1213, allocations: 0 / 0.5588 GB, free: 9.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1213, allocations: 0 / 0.5588 GB, free: 9.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.293e-05/0.1214, allocations: 45.72 kB / 0.5588 GB, free: 9.449 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.1214, allocations: 14.5 kB / 0.5588 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1215, allocations: 4 kB / 0.5588 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1215, allocations: 0 / 0.5588 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.981e-05/0.1215, allocations: 7.953 kB / 0.5588 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1215, allocations: 0 / 0.5588 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.181e-05/0.1216, allocations: 288 / 0.5588 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/0.1216, allocations: 0 / 0.5588 GB, free: 9.426 MB / 430.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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.617e-05/0.1217, allocations: 106.5 kB / 0.5589 GB, free: 9.312 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-06/0.1217, allocations: 4 kB / 0.5589 GB, free: 9.309 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.583e-05/0.1218, allocations: 52.69 kB / 0.559 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1218, allocations: 4 kB / 0.559 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1218, allocations: 3.953 kB / 0.559 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1218, allocations: 0 / 0.559 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.1219, allocations: 145.7 kB / 0.5591 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1219, allocations: 3.938 kB / 0.5591 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.111e-05/0.1219, allocations: 4 kB / 0.5591 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.122, allocations: 0 / 0.5591 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.122, allocations: 0 / 0.5591 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.122, allocations: 32 / 0.5591 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.122, allocations: 8 kB / 0.5591 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.384e-05/0.1221, allocations: 69.08 kB / 0.5592 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.1221, allocations: 77.11 kB / 0.5593 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.036e-05/0.1221, allocations: 0 / 0.5593 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-06/0.1221, allocations: 0 / 0.5593 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.828e-05/0.1222, allocations: 11.92 kB / 0.5593 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.1222, allocations: 3.984 kB / 0.5593 GB, free: 8.836 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.996e-05/0.1222, allocations: 81.38 kB / 0.5594 GB, free: 8.758 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1222, allocations: 0 / 0.5594 GB, free: 8.758 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001746/0.1224, allocations: 7.953 kB / 0.5594 GB, free: 8.75 MB / 430.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 (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.0004107/0.1228, allocations: 0.5975 MB / 0.56 GB, free: 8.121 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 6.401e-05/0.1229, allocations: 16.03 kB / 0.56 GB, free: 8.105 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1229, allocations: 3.938 kB / 0.56 GB, free: 8.102 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.412e-05/0.1229, allocations: 7.984 kB / 0.56 GB, free: 8.094 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.123, allocations: 0 / 0.56 GB, free: 8.094 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002569/0.1233, allocations: 112.3 kB / 0.5601 GB, free: 7.945 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.1236, allocations: 0.6731 MB / 0.5608 GB, free: 7.246 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.375e-05/0.1236, allocations: 4 kB / 0.5608 GB, free: 7.242 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.544e-05/0.1236, allocations: 7.562 kB / 0.5608 GB, free: 7.234 MB / 430.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1236, allocations: 4 kB / 0.5608 GB, free: 7.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009348/0.133, allocations: 0.856 MB / 0.5616 GB, free: 6.504 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.1332, allocations: 184.9 kB / 0.5618 GB, free: 6.266 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.404/1.538, allocations: 0 / 0.5618 GB, free: 6.266 MB / 430.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/linux/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) Environment - environmentSimulation: