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.001333/0.001333, allocations: 100.1 kB / 15.88 MB, free: 12 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.001806/0.001806, allocations: 202.5 kB / 16.79 MB, free: 6.84 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.361/1.361, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6581/0.6581, allocations: 115.3 MB / 406 MB, free: 2.785 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 65.66 kB / 493 MB, free: 6.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1195, allocations: 76.19 MB / 0.5559 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001658/0.1212, allocations: 0.6366 MB / 0.5565 GB, free: 10.1 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002489/0.1215, allocations: 54.36 kB / 0.5565 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.398e-06/0.1215, allocations: 0 / 0.5565 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.52e-05/0.1215, allocations: 0 / 0.5565 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.609e-06/0.1216, allocations: 0 / 0.5565 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.1217, allocations: 11.94 kB / 0.5565 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 2.861e-05/0.1218, allocations: 4 kB / 0.5566 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.334e-05/0.1218, allocations: 0 / 0.5566 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.502e-05/0.1218, allocations: 7.984 kB / 0.5566 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.76e-05/0.1218, allocations: 0 / 0.5566 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.745e-06/0.1219, allocations: 0 / 0.5566 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.153e-05/0.1219, allocations: 12 kB / 0.5566 GB, free: 10.01 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.855e-06/0.1219, allocations: 3.938 kB / 0.5566 GB, free: 10.01 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.122, allocations: 3.984 kB / 0.5566 GB, free: 10 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 6.625e-05/0.122, allocations: 11.98 kB / 0.5566 GB, free: 9.992 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.122, allocations: 0 / 0.5566 GB, free: 9.992 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1221, allocations: 4 kB / 0.5566 GB, free: 9.988 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.1221, allocations: 0 / 0.5566 GB, free: 9.988 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.0002414/0.1223, allocations: 307.6 kB / 0.5569 GB, free: 9.637 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1224, allocations: 12.02 kB / 0.5569 GB, free: 9.625 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.141e-05/0.1224, allocations: 34.75 kB / 0.5569 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.27e-05/0.1224, allocations: 4.938 kB / 0.5569 GB, free: 9.578 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.658e-05/0.1225, allocations: 168.4 kB / 0.5571 GB, free: 9.375 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.1225, allocations: 384 / 0.5571 GB, free: 9.375 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-06/0.1225, allocations: 384 / 0.5571 GB, free: 9.375 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.251e-05/0.1226, allocations: 34.25 kB / 0.5571 GB, free: 9.336 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1226, allocations: 7.875 kB / 0.5571 GB, free: 9.328 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/0.1226, allocations: 0 / 0.5571 GB, free: 9.328 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.1227, allocations: 3.938 kB / 0.5571 GB, free: 9.324 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.019e-05/0.1227, allocations: 4 kB / 0.5571 GB, free: 9.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001206/0.1228, allocations: 149.7 kB / 0.5573 GB, free: 9.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.615e-05/0.1229, allocations: 30.59 kB / 0.5573 GB, free: 9.086 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.595e-05/0.1229, allocations: 4.859 kB / 0.5573 GB, free: 9.078 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/0.123, allocations: 81.17 kB / 0.5574 GB, free: 8.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.1231, allocations: 30.56 kB / 0.5574 GB, free: 8.941 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 2.294e-06/0.1231, allocations: 3.938 kB / 0.5574 GB, free: 8.938 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001231/0.1232, allocations: 53.56 kB / 0.5575 GB, free: 8.879 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.1232, allocations: 55.41 kB / 0.5575 GB, free: 8.812 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.196e-05/0.1233, allocations: 89.86 kB / 0.5576 GB, free: 8.715 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.1233, allocations: 25.7 kB / 0.5576 GB, free: 8.684 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.995e-05/0.1233, allocations: 80.14 kB / 0.5577 GB, free: 8.602 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.1233, allocations: 3.906 kB / 0.5577 GB, free: 8.598 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.1234, allocations: 21.7 kB / 0.5577 GB, free: 8.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.677e-05/0.1235, allocations: 310.8 kB / 0.558 GB, free: 8.258 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.104e-05/0.1235, allocations: 4.125 kB / 0.558 GB, free: 8.254 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.566e-06/0.1235, allocations: 4 kB / 0.5581 GB, free: 8.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.142e-05/0.1235, allocations: 16.8 kB / 0.5581 GB, free: 8.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1235, allocations: 0 / 0.5581 GB, free: 8.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.634e-05/0.1236, allocations: 41.69 kB / 0.5581 GB, free: 8.184 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.1236, allocations: 9.719 kB / 0.5581 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1236, allocations: 3.938 kB / 0.5581 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.208e-06/0.1236, allocations: 0 / 0.5581 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.125e-05/0.1237, allocations: 7.984 kB / 0.5581 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1237, allocations: 4.094 kB / 0.5581 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.309e-05/0.1237, allocations: 288 / 0.5581 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-06/0.1237, allocations: 0 / 0.5581 GB, free: 8.16 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 (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 6.078e-05/0.1238, allocations: 109.8 kB / 0.5582 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-06/0.1238, allocations: 4 kB / 0.5582 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.164e-05/0.1239, allocations: 52.62 kB / 0.5583 GB, free: 7.984 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1239, allocations: 4 kB / 0.5583 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1239, allocations: 0 / 0.5583 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1239, allocations: 4.031 kB / 0.5583 GB, free: 7.977 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.639e-05/0.124, allocations: 145.7 kB / 0.5584 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.124, allocations: 0 / 0.5584 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.361e-05/0.1241, allocations: 7.938 kB / 0.5584 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.1241, allocations: 0 / 0.5584 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.1241, allocations: 3.938 kB / 0.5584 GB, free: 7.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.1241, allocations: 4 kB / 0.5585 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1241, allocations: 0 / 0.5585 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.095e-05/0.1242, allocations: 69.06 kB / 0.5585 GB, free: 7.684 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.1242, allocations: 77.11 kB / 0.5586 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.1242, allocations: 3.938 kB / 0.5586 GB, free: 7.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.1242, allocations: 3.984 kB / 0.5586 GB, free: 7.582 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.348e-05/0.1243, allocations: 8 kB / 0.5586 GB, free: 7.574 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1243, allocations: 0 / 0.5586 GB, free: 7.574 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.203e-05/0.1243, allocations: 75.28 kB / 0.5587 GB, free: 7.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1243, allocations: 0 / 0.5587 GB, free: 7.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000185/0.1245, allocations: 7.938 kB / 0.5587 GB, free: 7.492 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 (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.0003356/0.1248, allocations: 0.6047 MB / 0.5593 GB, free: 6.855 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 6.279e-05/0.1249, allocations: 15.92 kB / 0.5593 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1249, allocations: 0 / 0.5593 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.416e-05/0.1249, allocations: 4 kB / 0.5593 GB, free: 6.836 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.1251, allocations: 8.156 kB / 0.5593 GB, free: 6.828 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002597/0.1253, allocations: 112.3 kB / 0.5594 GB, free: 6.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.1255, allocations: 0.677 MB / 0.5601 GB, free: 5.977 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.297e-05/0.1256, allocations: 0 / 0.5601 GB, free: 5.977 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.718e-05/0.1256, allocations: 7.438 kB / 0.5601 GB, free: 5.969 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1256, allocations: 0 / 0.5601 GB, free: 5.969 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2605/0.3861, allocations: 0.9349 MB / 0.561 GB, free: 5.129 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003374/0.3865, allocations: 194.2 kB / 0.5612 GB, free: 4.879 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/2.111, allocations: 0 / 0.5612 GB, free: 4.879 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/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)