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.001288/0.001292, allocations: 102.3 kB / 15.98 MB, free: 6.34 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.00123/0.00123, allocations: 201.4 kB / 16.91 MB, free: 6.188 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.435/1.435, allocations: 222.9 MB / 240.6 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7453/0.7453, allocations: 115.3 MB / 406.1 MB, free: 6.422 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 64.12 kB / 493.2 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4218, allocations: 76.18 MB / 0.556 GB, free: 35.52 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001585/0.4234, allocations: 0.631 MB / 0.5567 GB, free: 35.14 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002204/0.4237, allocations: 46.75 kB / 0.5567 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.253e-05/0.4237, allocations: 4.5 kB / 0.5567 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.4237, allocations: 5.25 kB / 0.5567 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.551e-06/0.4237, allocations: 0 / 0.5567 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.4239, allocations: 13.47 kB / 0.5567 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.599e-05/0.424, allocations: 0 / 0.5567 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.663e-05/0.424, allocations: 3.266 kB / 0.5567 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.295e-05/0.4241, allocations: 1.594 kB / 0.5567 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.046e-05/0.4241, allocations: 6.438 kB / 0.5567 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.4241, allocations: 3.656 kB / 0.5567 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.34e-05/0.4242, allocations: 9.219 kB / 0.5567 GB, free: 35.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.768e-06/0.4242, allocations: 5.594 kB / 0.5567 GB, free: 35.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.745e-05/0.4242, allocations: 1.688 kB / 0.5568 GB, free: 35.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.056e-05/0.4243, allocations: 11.19 kB / 0.5568 GB, free: 35.08 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.4243, allocations: 0.6875 kB / 0.5568 GB, free: 35.08 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4243, allocations: 2.469 kB / 0.5568 GB, free: 35.08 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.4243, allocations: 0.75 kB / 0.5568 GB, free: 35.08 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.0002101/0.4245, allocations: 315.4 kB / 0.5571 GB, free: 34.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.4246, allocations: 9.719 kB / 0.5571 GB, free: 34.73 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.384e-05/0.4246, allocations: 34.75 kB / 0.5571 GB, free: 34.69 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.4246, allocations: 0.9375 kB / 0.5571 GB, free: 34.69 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.81e-05/0.4247, allocations: 163.5 kB / 0.5573 GB, free: 34.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.4247, allocations: 2.438 kB / 0.5573 GB, free: 34.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-06/0.4247, allocations: 4.375 kB / 0.5573 GB, free: 34.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.01e-05/0.4248, allocations: 34.14 kB / 0.5573 GB, free: 34.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.4248, allocations: 6.094 kB / 0.5573 GB, free: 34.45 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.4248, allocations: 0 / 0.5573 GB, free: 34.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.4248, allocations: 0 / 0.5573 GB, free: 34.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.982e-05/0.4249, allocations: 9.422 kB / 0.5573 GB, free: 34.45 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001009/0.425, allocations: 152.3 kB / 0.5575 GB, free: 34.26 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.359e-05/0.425, allocations: 24.81 kB / 0.5575 GB, free: 34.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.425, allocations: 9.359 kB / 0.5575 GB, free: 34.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.4252, allocations: 89.53 kB / 0.5576 GB, free: 34.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.297e-05/0.4252, allocations: 36.25 kB / 0.5576 GB, free: 34.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.4252, allocations: 0 / 0.5576 GB, free: 34.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001202/0.4253, allocations: 43.73 kB / 0.5577 GB, free: 34.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.4253, allocations: 52.56 kB / 0.5577 GB, free: 33.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.882e-05/0.4254, allocations: 93.52 kB / 0.5578 GB, free: 33.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-06/0.4254, allocations: 26.23 kB / 0.5578 GB, free: 33.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.197e-05/0.4254, allocations: 81.61 kB / 0.5579 GB, free: 33.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.4254, allocations: 5.906 kB / 0.5579 GB, free: 33.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-05/0.4254, allocations: 11.62 kB / 0.5579 GB, free: 33.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.4255, allocations: 317.8 kB / 0.5582 GB, free: 33.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.032e-05/0.4255, allocations: 4.812 kB / 0.5582 GB, free: 33.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.4255, allocations: 8.094 kB / 0.5582 GB, free: 33.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.446e-05/0.4256, allocations: 12.77 kB / 0.5582 GB, free: 33.42 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4256, allocations: 0 / 0.5582 GB, free: 33.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.553e-05/0.4256, allocations: 39.23 kB / 0.5583 GB, free: 33.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.4256, allocations: 4.75 kB / 0.5583 GB, free: 33.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.4256, allocations: 4.688 kB / 0.5583 GB, free: 33.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.4256, allocations: 0.5938 kB / 0.5583 GB, free: 33.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.729e-05/0.4257, allocations: 6.812 kB / 0.5583 GB, free: 33.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.4257, allocations: 4.031 kB / 0.5583 GB, free: 33.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.228e-05/0.4257, allocations: 2.25 kB / 0.5583 GB, free: 33.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-06/0.4257, allocations: 0 / 0.5583 GB, free: 33.38 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 4.357e-05/0.4258, allocations: 115.3 kB / 0.5584 GB, free: 33.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.032e-06/0.4258, allocations: 3.938 kB / 0.5584 GB, free: 33.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.644e-05/0.4259, allocations: 40.47 kB / 0.5585 GB, free: 33.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.4259, allocations: 6.234 kB / 0.5585 GB, free: 33.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4259, allocations: 0 / 0.5585 GB, free: 33.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.4259, allocations: 0 / 0.5585 GB, free: 33.22 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.194e-05/0.4259, allocations: 149.3 kB / 0.5586 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.426, allocations: 0 / 0.5586 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.011e-05/0.426, allocations: 3.5 kB / 0.5586 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.426, allocations: 5.406 kB / 0.5586 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.426, allocations: 13.47 kB / 0.5586 GB, free: 33.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.426, allocations: 0 / 0.5586 GB, free: 33.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.426, allocations: 0 / 0.5586 GB, free: 33.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.279e-05/0.4261, allocations: 63.25 kB / 0.5587 GB, free: 32.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.606e-05/0.4261, allocations: 85.92 kB / 0.5588 GB, free: 32.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.388e-06/0.4261, allocations: 3.938 kB / 0.5588 GB, free: 32.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-06/0.4261, allocations: 0 / 0.5588 GB, free: 32.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.461e-05/0.4261, allocations: 4.688 kB / 0.5588 GB, free: 32.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.4262, allocations: 0.7188 kB / 0.5588 GB, free: 32.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.106e-05/0.4262, allocations: 75.28 kB / 0.5588 GB, free: 32.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4262, allocations: 1.438 kB / 0.5589 GB, free: 32.78 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001768/0.4264, allocations: 7 kB / 0.5589 GB, free: 32.77 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.0002361/0.4266, allocations: 0.61 MB / 0.5595 GB, free: 32.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.514e-05/0.4267, allocations: 8.547 kB / 0.5595 GB, free: 32.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.4267, allocations: 0.8125 kB / 0.5595 GB, free: 32.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.368e-05/0.4267, allocations: 7.953 kB / 0.5595 GB, free: 32.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.4268, allocations: 4.719 kB / 0.5595 GB, free: 32.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002267/0.4271, allocations: 122.8 kB / 0.5596 GB, free: 32.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.869e-05/0.4272, allocations: 0.6723 MB / 0.5602 GB, free: 31.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.203e-05/0.4272, allocations: 1.938 kB / 0.5602 GB, free: 31.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.751e-05/0.4272, allocations: 10.34 kB / 0.5603 GB, free: 31.32 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4272, allocations: 3.938 kB / 0.5603 GB, free: 31.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.049/1.477, allocations: 0.954 MB / 0.5612 GB, free: 31.12 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002376/1.477, allocations: 195.8 kB / 0.5614 GB, free: 30.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/3.112, allocations: 0.9688 kB / 0.5614 GB, free: 30.87 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)