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.001109/0.001109, allocations: 103 kB / 15.98 MB, free: 6.344 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.001123/0.001123, allocations: 195.6 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.468/1.468, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7481/0.7481, allocations: 115.3 MB / 406.1 MB, free: 6.422 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 71.88 kB / 493.2 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4721/0.4741, allocations: 76.17 MB / 0.556 GB, free: 35.66 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002942/0.4771, allocations: 1.568 MB / 0.5575 GB, free: 34.59 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003535/0.4775, allocations: 130.1 kB / 0.5577 GB, free: 34.5 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.738e-05/0.4775, allocations: 1.312 kB / 0.5577 GB, free: 34.5 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.646e-05/0.4776, allocations: 1.031 kB / 0.5577 GB, free: 34.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.696e-05/0.4776, allocations: 0.6562 kB / 0.5577 GB, free: 34.5 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.4779, allocations: 23.47 kB / 0.5577 GB, free: 34.49 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.027e-05/0.478, allocations: 31.25 kB / 0.5577 GB, free: 34.47 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.315e-05/0.4781, allocations: 11.23 kB / 0.5577 GB, free: 34.47 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.507e-05/0.4781, allocations: 11.25 kB / 0.5577 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.139e-05/0.4782, allocations: 17.11 kB / 0.5578 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.4782, allocations: 3.719 kB / 0.5578 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6e-05/0.4783, allocations: 12.48 kB / 0.5578 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.437e-05/0.4783, allocations: 6.719 kB / 0.5578 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.687e-05/0.4783, allocations: 12.19 kB / 0.5578 GB, free: 34.44 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.4784, allocations: 35.77 kB / 0.5578 GB, free: 34.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4784, allocations: 3.938 kB / 0.5578 GB, free: 34.42 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4784, allocations: 2.031 kB / 0.5578 GB, free: 34.42 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.4785, allocations: 0 / 0.5578 GB, free: 34.42 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.0004072/0.4789, allocations: 344.7 kB / 0.5582 GB, free: 34.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.4789, allocations: 9.906 kB / 0.5582 GB, free: 34.06 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.463e-05/0.4789, allocations: 32.41 kB / 0.5582 GB, free: 34.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.479, allocations: 3.219 kB / 0.5582 GB, free: 34.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.277e-05/0.4791, allocations: 166.6 kB / 0.5584 GB, free: 33.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.4791, allocations: 10.05 kB / 0.5584 GB, free: 33.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.4791, allocations: 1.75 kB / 0.5584 GB, free: 33.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.4793, allocations: 57.98 kB / 0.5584 GB, free: 33.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4793, allocations: 3.938 kB / 0.5584 GB, free: 33.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.719e-06/0.4793, allocations: 2.047 kB / 0.5584 GB, free: 33.78 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.4793, allocations: 5.312 kB / 0.5584 GB, free: 33.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.4795, allocations: 46.3 kB / 0.5585 GB, free: 33.76 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000338/0.4799, allocations: 268 kB / 0.5587 GB, free: 33.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.4802, allocations: 57.11 kB / 0.5588 GB, free: 33.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.827e-05/0.4803, allocations: 25.38 kB / 0.5588 GB, free: 33.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.4804, allocations: 86.55 kB / 0.5589 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.4804, allocations: 39.06 kB / 0.5589 GB, free: 33.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.4804, allocations: 0.75 kB / 0.5589 GB, free: 33.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003718/0.4808, allocations: 92.97 kB / 0.559 GB, free: 33.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.4808, allocations: 52.75 kB / 0.5591 GB, free: 33.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.087e-05/0.4809, allocations: 104.4 kB / 0.5592 GB, free: 33.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.4809, allocations: 25.7 kB / 0.5592 GB, free: 33.06 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.197e-05/0.481, allocations: 85.41 kB / 0.5593 GB, free: 32.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.481, allocations: 12.44 kB / 0.5593 GB, free: 32.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.481, allocations: 17.88 kB / 0.5593 GB, free: 32.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.455e-05/0.4811, allocations: 315.9 kB / 0.5596 GB, free: 32.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.613e-05/0.4812, allocations: 17.48 kB / 0.5596 GB, free: 32.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.61e-05/0.4813, allocations: 23.8 kB / 0.5597 GB, free: 32.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.4814, allocations: 49.31 kB / 0.5597 GB, free: 32.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4814, allocations: 0 / 0.5597 GB, free: 32.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001962/0.4816, allocations: 76.92 kB / 0.5598 GB, free: 32.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.4817, allocations: 6.281 kB / 0.5598 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.4817, allocations: 1.188 kB / 0.5598 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.4817, allocations: 0 / 0.5598 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.7e-05/0.4818, allocations: 12.55 kB / 0.5598 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.4818, allocations: 0 / 0.5598 GB, free: 32.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.473e-05/0.4818, allocations: 11.77 kB / 0.5598 GB, free: 32.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.4818, allocations: 1.031 kB / 0.5598 GB, free: 32.56 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 6.472e-05/0.4819, allocations: 120.6 kB / 0.5599 GB, free: 32.44 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.4819, allocations: 5.562 kB / 0.5599 GB, free: 32.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002357/0.4822, allocations: 79.28 kB / 0.56 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.4822, allocations: 0 / 0.56 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4822, allocations: 1.531 kB / 0.56 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4822, allocations: 0.5625 kB / 0.56 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.4824, allocations: 173.1 kB / 0.5602 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4824, allocations: 1.531 kB / 0.5602 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/0.4824, allocations: 12.17 kB / 0.5602 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4824, allocations: 0 / 0.5602 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.4825, allocations: 1.25 kB / 0.5602 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4825, allocations: 4 kB / 0.5602 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4825, allocations: 1.156 kB / 0.5602 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.4827, allocations: 176.3 kB / 0.5604 GB, free: 32.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.766e-05/0.4827, allocations: 87.27 kB / 0.5604 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.4828, allocations: 1.688 kB / 0.5604 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.198e-05/0.4828, allocations: 10.64 kB / 0.5605 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.4829, allocations: 5 kB / 0.5605 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.4829, allocations: 2.125 kB / 0.5605 GB, free: 31.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.809e-05/0.4829, allocations: 85.16 kB / 0.5605 GB, free: 31.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4829, allocations: 0 / 0.5605 GB, free: 31.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002157/0.4832, allocations: 7.688 kB / 0.5606 GB, free: 31.86 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.0004264/0.4836, allocations: 0.7088 MB / 0.5612 GB, free: 31.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002395/0.4838, allocations: 46.31 kB / 0.5613 GB, free: 31.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4839, allocations: 0 / 0.5613 GB, free: 31.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.518e-05/0.484, allocations: 31.55 kB / 0.5613 GB, free: 31.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.4842, allocations: 3.297 kB / 0.5613 GB, free: 31.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004036/0.4847, allocations: 156 kB / 0.5615 GB, free: 31.01 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.4848, allocations: 0.6779 MB / 0.5621 GB, free: 30.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.11e-05/0.4848, allocations: 3.781 kB / 0.5621 GB, free: 30.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.889e-05/0.4849, allocations: 16.5 kB / 0.5622 GB, free: 30.3 MB / 446.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4849, allocations: 1.188 kB / 0.5622 GB, free: 30.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.499, allocations: 1.396 MB / 0.5635 GB, free: 30.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.4993, allocations: 188.5 kB / 0.5637 GB, free: 29.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/2.132, allocations: 1.125 kB / 0.5637 GB, free: 29.83 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)