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.001164/0.001171, allocations: 106.3 kB / 16.41 MB, free: 6.438 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.001473/0.001473, allocations: 195 kB / 17.34 MB, free: 5.703 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8298/0.8298, allocations: 122.9 MB / 414.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 64.67 kB / 0.568 GB, free: 28.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1564, allocations: 77.92 MB / 0.6441 GB, free: 9.512 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001896/0.1583, allocations: 0.5633 MB / 0.6447 GB, free: 8.953 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000324/0.1587, allocations: 55.78 kB / 0.6447 GB, free: 8.898 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.858e-05/0.1587, allocations: 0 / 0.6447 GB, free: 8.898 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.1588, allocations: 0 / 0.6447 GB, free: 8.898 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.725e-06/0.1588, allocations: 4 kB / 0.6447 GB, free: 8.895 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002699/0.1591, allocations: 15.94 kB / 0.6447 GB, free: 8.879 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.725e-05/0.1591, allocations: 3.984 kB / 0.6447 GB, free: 8.875 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.598e-05/0.1592, allocations: 3.938 kB / 0.6447 GB, free: 8.871 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.162e-05/0.1592, allocations: 11.92 kB / 0.6447 GB, free: 8.859 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.72e-05/0.1592, allocations: 4 kB / 0.6447 GB, free: 8.855 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.898e-06/0.1593, allocations: 0 / 0.6447 GB, free: 8.855 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.393e-05/0.1593, allocations: 4 kB / 0.6447 GB, free: 8.852 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.1594, allocations: 0 / 0.6447 GB, free: 8.852 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.563e-05/0.1594, allocations: 8 kB / 0.6448 GB, free: 8.844 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.1595, allocations: 11.97 kB / 0.6448 GB, free: 8.832 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1595, allocations: 0 / 0.6448 GB, free: 8.832 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1595, allocations: 4 kB / 0.6448 GB, free: 8.828 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1595, allocations: 3.938 kB / 0.6448 GB, free: 8.824 MB / 494.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.0003418/0.1599, allocations: 319.8 kB / 0.6451 GB, free: 8.461 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.1599, allocations: 8.625 kB / 0.6451 GB, free: 8.453 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.16, allocations: 34.75 kB / 0.6451 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.16, allocations: 0.9375 kB / 0.6451 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1601, allocations: 160.4 kB / 0.6453 GB, free: 8.215 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.1602, allocations: 384 / 0.6453 GB, free: 8.215 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.894e-06/0.1602, allocations: 384 / 0.6453 GB, free: 8.215 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.1603, allocations: 38.25 kB / 0.6453 GB, free: 8.172 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.1603, allocations: 7.875 kB / 0.6453 GB, free: 8.164 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.1603, allocations: 0 / 0.6453 GB, free: 8.164 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.1603, allocations: 0 / 0.6453 GB, free: 8.164 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.491e-05/0.1604, allocations: 8 kB / 0.6453 GB, free: 8.156 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.1605, allocations: 145.7 kB / 0.6455 GB, free: 7.965 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.53e-05/0.1606, allocations: 26.91 kB / 0.6455 GB, free: 7.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.144e-05/0.1606, allocations: 12.84 kB / 0.6455 GB, free: 7.914 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001716/0.1608, allocations: 81.17 kB / 0.6456 GB, free: 7.816 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.1608, allocations: 30.56 kB / 0.6456 GB, free: 7.777 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 3.186e-06/0.1608, allocations: 0 / 0.6456 GB, free: 7.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.00016/0.161, allocations: 57.52 kB / 0.6457 GB, free: 7.715 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.161, allocations: 51.41 kB / 0.6457 GB, free: 7.652 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.307e-05/0.1611, allocations: 89.86 kB / 0.6458 GB, free: 7.555 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.1611, allocations: 25.7 kB / 0.6458 GB, free: 7.523 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.596e-05/0.1611, allocations: 84.27 kB / 0.6459 GB, free: 7.438 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.1612, allocations: 4 kB / 0.6459 GB, free: 7.434 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.1612, allocations: 17.7 kB / 0.6459 GB, free: 7.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1613, allocations: 314.8 kB / 0.6462 GB, free: 7.094 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.43e-05/0.1613, allocations: 4 kB / 0.6462 GB, free: 7.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.273e-06/0.1613, allocations: 0 / 0.6462 GB, free: 7.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.459e-05/0.1614, allocations: 20.8 kB / 0.6463 GB, free: 7.066 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1614, allocations: 4.062 kB / 0.6463 GB, free: 7.062 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.901e-05/0.1614, allocations: 45.69 kB / 0.6463 GB, free: 7.012 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1615, allocations: 7.938 kB / 0.6463 GB, free: 7.004 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1615, allocations: 3.938 kB / 0.6463 GB, free: 7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.1615, allocations: 3.938 kB / 0.6463 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.704e-05/0.1616, allocations: 4 kB / 0.6463 GB, free: 6.992 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1616, allocations: 0 / 0.6463 GB, free: 6.992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.29e-05/0.1616, allocations: 0 / 0.6463 GB, free: 6.992 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-06/0.1616, allocations: 0 / 0.6463 GB, free: 6.992 MB / 494.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.432e-05/0.1617, allocations: 113.9 kB / 0.6464 GB, free: 6.871 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/0.1617, allocations: 3.984 kB / 0.6464 GB, free: 6.867 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.981e-05/0.1618, allocations: 48.7 kB / 0.6465 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1618, allocations: 0 / 0.6465 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1618, allocations: 0 / 0.6465 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1618, allocations: 0 / 0.6465 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.1619, allocations: 153.6 kB / 0.6466 GB, free: 6.613 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1619, allocations: 0 / 0.6466 GB, free: 6.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.329e-05/0.162, allocations: 0 / 0.6466 GB, free: 6.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.162, allocations: 4 kB / 0.6466 GB, free: 6.609 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.162, allocations: 7.969 kB / 0.6466 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.162, allocations: 0 / 0.6466 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.162, allocations: 3.984 kB / 0.6466 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.446e-05/0.1621, allocations: 65.08 kB / 0.6467 GB, free: 6.516 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/0.1621, allocations: 77.11 kB / 0.6468 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.1621, allocations: 7.922 kB / 0.6468 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.1622, allocations: 4 kB / 0.6468 GB, free: 6.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-05/0.1622, allocations: 4.031 kB / 0.6468 GB, free: 6.406 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.1622, allocations: 0 / 0.6468 GB, free: 6.406 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.753e-05/0.1622, allocations: 75.28 kB / 0.6469 GB, free: 6.332 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1622, allocations: 0 / 0.6469 GB, free: 6.332 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000186/0.1624, allocations: 4 kB / 0.6469 GB, free: 6.328 MB / 494.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.0003964/0.1628, allocations: 0.6124 MB / 0.6475 GB, free: 5.684 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.99e-05/0.1629, allocations: 15.92 kB / 0.6475 GB, free: 5.668 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1629, allocations: 0 / 0.6475 GB, free: 5.668 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.686e-05/0.163, allocations: 4 kB / 0.6475 GB, free: 5.664 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.1631, allocations: 1.875 kB / 0.6475 GB, free: 5.664 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003104/0.1634, allocations: 122.5 kB / 0.6476 GB, free: 5.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.1637, allocations: 0.6729 MB / 0.6483 GB, free: 4.805 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.736e-05/0.1637, allocations: 8.125 kB / 0.6483 GB, free: 4.797 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.855e-05/0.1637, allocations: 11.44 kB / 0.6483 GB, free: 4.785 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1637, allocations: 3.938 kB / 0.6483 GB, free: 4.781 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01553/0.1793, allocations: 1.054 MB / 0.6493 GB, free: 3.809 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/7.61, allocations: 9.797 kB / 0.6493 GB, free: 3.805 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)