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.001082/0.001082, allocations: 102.6 kB / 16.4 MB, free: 6.477 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.001065/0.001065, allocations: 193.2 kB / 17.34 MB, free: 5.754 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7198/0.7198, allocations: 115.3 MB / 406.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 66.02 kB / 0.5572 GB, free: 32.32 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1515, allocations: 76.18 MB / 0.6316 GB, free: 4.852 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001663/0.1532, allocations: 0.5688 MB / 0.6322 GB, free: 4.285 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002527/0.1535, allocations: 47.84 kB / 0.6322 GB, free: 4.238 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.588e-05/0.1535, allocations: 0 / 0.6322 GB, free: 4.238 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.1535, allocations: 0 / 0.6322 GB, free: 4.238 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.44e-06/0.1536, allocations: 0 / 0.6322 GB, free: 4.238 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002183/0.1538, allocations: 15.94 kB / 0.6322 GB, free: 4.223 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 4.994e-05/0.1539, allocations: 3.984 kB / 0.6322 GB, free: 4.219 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.639e-05/0.1539, allocations: 4 kB / 0.6323 GB, free: 4.215 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.1539, allocations: 3.938 kB / 0.6323 GB, free: 4.211 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.382e-05/0.154, allocations: 7.938 kB / 0.6323 GB, free: 4.203 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.154, allocations: 4 kB / 0.6323 GB, free: 4.199 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.43e-05/0.1541, allocations: 8 kB / 0.6323 GB, free: 4.191 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.356e-05/0.1541, allocations: 7.969 kB / 0.6323 GB, free: 4.184 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.98e-05/0.1541, allocations: 4 kB / 0.6323 GB, free: 4.18 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 7.871e-05/0.1542, allocations: 4 kB / 0.6323 GB, free: 4.176 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1542, allocations: 0 / 0.6323 GB, free: 4.176 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1542, allocations: 0 / 0.6323 GB, free: 4.176 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.1542, allocations: 0 / 0.6323 GB, free: 4.176 MB / 478.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.0002993/0.1545, allocations: 315.6 kB / 0.6326 GB, free: 3.816 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1546, allocations: 12.03 kB / 0.6326 GB, free: 3.805 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.353e-05/0.1546, allocations: 34.75 kB / 0.6326 GB, free: 3.762 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.1546, allocations: 4.875 kB / 0.6326 GB, free: 3.758 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.896e-05/0.1547, allocations: 160.4 kB / 0.6328 GB, free: 3.562 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-06/0.1548, allocations: 384 / 0.6328 GB, free: 3.562 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.1548, allocations: 4.312 kB / 0.6328 GB, free: 3.559 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.624e-05/0.1549, allocations: 34.25 kB / 0.6328 GB, free: 3.52 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1549, allocations: 3.938 kB / 0.6328 GB, free: 3.516 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.1549, allocations: 0 / 0.6328 GB, free: 3.516 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1549, allocations: 4 kB / 0.6328 GB, free: 3.512 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.192e-05/0.1549, allocations: 7.984 kB / 0.6328 GB, free: 3.504 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001366/0.1551, allocations: 153.7 kB / 0.633 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.9e-05/0.1551, allocations: 22.95 kB / 0.633 GB, free: 3.273 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.032e-05/0.1552, allocations: 12.86 kB / 0.633 GB, free: 3.258 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001506/0.1553, allocations: 81.09 kB / 0.6331 GB, free: 3.16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.1554, allocations: 34.56 kB / 0.6331 GB, free: 3.117 MB / 478.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1554, allocations: 0 / 0.6331 GB, free: 3.117 MB / 478.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001375/0.1555, allocations: 45.64 kB / 0.6332 GB, free: 3.066 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.1556, allocations: 51.41 kB / 0.6332 GB, free: 3.004 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.723e-05/0.1556, allocations: 93.84 kB / 0.6333 GB, free: 2.902 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.1556, allocations: 25.7 kB / 0.6333 GB, free: 2.871 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.002e-05/0.1556, allocations: 80.14 kB / 0.6334 GB, free: 2.789 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.1557, allocations: 11.91 kB / 0.6334 GB, free: 2.777 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.1557, allocations: 9.719 kB / 0.6334 GB, free: 2.762 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.1558, allocations: 323 kB / 0.6337 GB, free: 2.438 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.304e-05/0.1558, allocations: 3.938 kB / 0.6338 GB, free: 2.434 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.104e-06/0.1559, allocations: 0 / 0.6338 GB, free: 2.434 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.255e-05/0.1559, allocations: 20.84 kB / 0.6338 GB, free: 2.41 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1559, allocations: 0 / 0.6338 GB, free: 2.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.078e-05/0.156, allocations: 37.7 kB / 0.6338 GB, free: 2.367 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.156, allocations: 5.562 kB / 0.6338 GB, free: 2.363 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.156, allocations: 11.88 kB / 0.6338 GB, free: 2.352 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.156, allocations: 0 / 0.6338 GB, free: 2.352 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.461e-05/0.1561, allocations: 12.08 kB / 0.6338 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.1561, allocations: 0 / 0.6338 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.1561, allocations: 2.812 kB / 0.6338 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.1561, allocations: 4 kB / 0.6338 GB, free: 2.336 MB / 478.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.057e-05/0.1562, allocations: 109.8 kB / 0.6339 GB, free: 2.219 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.645e-06/0.1562, allocations: 3.938 kB / 0.634 GB, free: 2.215 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.636e-05/0.1563, allocations: 48.75 kB / 0.634 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1563, allocations: 0 / 0.634 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1563, allocations: 4.031 kB / 0.634 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1563, allocations: 0 / 0.634 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.8e-05/0.1564, allocations: 149.7 kB / 0.6341 GB, free: 1.961 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1564, allocations: 0 / 0.6341 GB, free: 1.961 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.539e-05/0.1565, allocations: 7.984 kB / 0.6342 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1565, allocations: 0 / 0.6342 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.1565, allocations: 3.938 kB / 0.6342 GB, free: 1.949 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1565, allocations: 0 / 0.6342 GB, free: 1.949 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1565, allocations: 0 / 0.6342 GB, free: 1.949 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.281e-05/0.1566, allocations: 73.06 kB / 0.6342 GB, free: 1.859 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.941e-05/0.1566, allocations: 81.11 kB / 0.6343 GB, free: 1.762 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.1566, allocations: 3.938 kB / 0.6343 GB, free: 1.758 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.099e-05/0.1567, allocations: 0 / 0.6343 GB, free: 1.758 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.434e-05/0.1567, allocations: 0 / 0.6343 GB, free: 1.758 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.1567, allocations: 4 kB / 0.6343 GB, free: 1.754 MB / 478.1 MB Notification: Performance of sorting global known variables: time 2.384e-05/0.1567, allocations: 75.28 kB / 0.6344 GB, free: 1.68 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1567, allocations: 0 / 0.6344 GB, free: 1.68 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0001968/0.1569, allocations: 4 kB / 0.6344 GB, free: 1.676 MB / 478.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.0003708/0.1573, allocations: 0.6124 MB / 0.635 GB, free: 1.031 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 7.326e-05/0.1574, allocations: 8 kB / 0.635 GB, free: 1.023 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1574, allocations: 0 / 0.635 GB, free: 1.023 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 1.569e-05/0.1574, allocations: 8.094 kB / 0.635 GB, free: 1.016 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.1575, allocations: 0 / 0.635 GB, free: 1.016 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003179/0.1579, allocations: 126.6 kB / 0.6351 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/0.1581, allocations: 0.669 MB / 0.6358 GB, free: 160 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 1.363e-05/0.1581, allocations: 3.938 kB / 0.6358 GB, free: 156 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.019e-05/0.1581, allocations: 15.42 kB / 0.6358 GB, free: 140 kB / 478.1 MB Notification: Performance of SimCode: time 1.763e-06/0.1582, allocations: 0 / 0.6358 GB, free: 140 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01662/0.1748, allocations: 1.074 MB / 0.6368 GB, free: 15.14 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.466/7.641, allocations: 11.97 kB / 0.6369 GB, free: 15.13 MB / 494.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)