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.0008741/0.0008743, allocations: 98.58 kB / 16.02 MB, free: 80 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.0009977/0.0009976, allocations: 182.3 kB / 16.92 MB, free: 6.773 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.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.702/0.702, allocations: 115.5 MB / 407.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003089, allocations: 8 kB / 495.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1591, allocations: 77.53 MB / 0.56 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002046/0.1612, allocations: 1.222 MB / 0.5612 GB, free: 7.715 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000424/0.1617, allocations: 124.5 kB / 0.5614 GB, free: 7.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.841e-05/0.1617, allocations: 0 / 0.5614 GB, free: 7.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.962e-05/0.1617, allocations: 4 kB / 0.5614 GB, free: 7.586 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.143e-05/0.1618, allocations: 0 / 0.5614 GB, free: 7.586 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002014/0.162, allocations: 27.91 kB / 0.5614 GB, free: 7.559 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.289e-05/0.1621, allocations: 27.92 kB / 0.5614 GB, free: 7.531 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.758e-05/0.1622, allocations: 8 kB / 0.5614 GB, free: 7.523 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.806e-05/0.1622, allocations: 11.92 kB / 0.5614 GB, free: 7.512 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.482e-05/0.1623, allocations: 15.92 kB / 0.5614 GB, free: 7.496 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.1623, allocations: 0 / 0.5614 GB, free: 7.496 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.909e-05/0.1624, allocations: 8 kB / 0.5614 GB, free: 7.488 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.917e-05/0.1624, allocations: 11.98 kB / 0.5615 GB, free: 7.477 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.222e-05/0.1625, allocations: 37.62 kB / 0.5615 GB, free: 7.434 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.1626, allocations: 27.89 kB / 0.5615 GB, free: 7.406 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1626, allocations: 0 / 0.5615 GB, free: 7.406 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1626, allocations: 4 kB / 0.5615 GB, free: 7.402 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1626, allocations: 0 / 0.5615 GB, free: 7.402 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005141/0.1631, allocations: 343.7 kB / 0.5619 GB, free: 7.016 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.1632, allocations: 12.03 kB / 0.5619 GB, free: 7.004 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.1633, allocations: 34.75 kB / 0.5619 GB, free: 6.961 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.867e-05/0.1633, allocations: 4.938 kB / 0.5619 GB, free: 6.957 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.1634, allocations: 168.3 kB / 0.5621 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.1635, allocations: 384 / 0.5621 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.1635, allocations: 384 / 0.5621 GB, free: 6.754 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.1637, allocations: 66.22 kB / 0.5621 GB, free: 6.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1638, allocations: 7.875 kB / 0.5621 GB, free: 6.676 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.1638, allocations: 7.938 kB / 0.5621 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1638, allocations: 7.984 kB / 0.5622 GB, free: 6.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002051/0.164, allocations: 51.95 kB / 0.5622 GB, free: 6.609 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004529/0.1645, allocations: 272.8 kB / 0.5625 GB, free: 6.293 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.1648, allocations: 58.55 kB / 0.5625 GB, free: 6.227 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.165, allocations: 36.83 kB / 0.5626 GB, free: 6.188 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001339/0.1651, allocations: 85.11 kB / 0.5626 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.1651, allocations: 30.56 kB / 0.5627 GB, free: 6.047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1651, allocations: 0 / 0.5627 GB, free: 6.047 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004413/0.1656, allocations: 109.6 kB / 0.5628 GB, free: 5.934 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.1656, allocations: 55.41 kB / 0.5628 GB, free: 5.867 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.096e-05/0.1657, allocations: 97.84 kB / 0.5629 GB, free: 5.762 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1658, allocations: 25.7 kB / 0.5629 GB, free: 5.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.1658, allocations: 88.14 kB / 0.563 GB, free: 5.641 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.1658, allocations: 7.844 kB / 0.563 GB, free: 5.633 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.1659, allocations: 9.719 kB / 0.563 GB, free: 5.617 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.166, allocations: 322.8 kB / 0.5633 GB, free: 5.293 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.991e-05/0.1661, allocations: 31.91 kB / 0.5634 GB, free: 5.262 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.397e-05/0.1662, allocations: 15.98 kB / 0.5634 GB, free: 5.246 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.1664, allocations: 64.75 kB / 0.5635 GB, free: 5.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1664, allocations: 0 / 0.5635 GB, free: 5.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002432/0.1667, allocations: 85.66 kB / 0.5635 GB, free: 5.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1667, allocations: 10.03 kB / 0.5635 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1667, allocations: 0 / 0.5635 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1667, allocations: 0 / 0.5635 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.993e-05/0.1668, allocations: 11.98 kB / 0.5636 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.1669, allocations: 7.938 kB / 0.5636 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.946e-05/0.1669, allocations: 11.89 kB / 0.5636 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.1669, allocations: 0 / 0.5636 GB, free: 5.051 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 (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 7.806e-05/0.167, allocations: 117.8 kB / 0.5637 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/0.1671, allocations: 4 kB / 0.5637 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000284/0.1673, allocations: 89.14 kB / 0.5638 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1674, allocations: 0.5625 kB / 0.5638 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.1674, allocations: 7.984 kB / 0.5638 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1674, allocations: 7.938 kB / 0.5638 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.1675, allocations: 157.6 kB / 0.5639 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1676, allocations: 0 / 0.5639 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.627e-05/0.1676, allocations: 19.92 kB / 0.564 GB, free: 4.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.1677, allocations: 0 / 0.564 GB, free: 4.59 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.1677, allocations: 3.984 kB / 0.564 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.1677, allocations: 7.938 kB / 0.564 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1677, allocations: 3.984 kB / 0.564 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.168, allocations: 187.5 kB / 0.5642 GB, free: 4.375 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.168, allocations: 81.02 kB / 0.5642 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.168, allocations: 0 / 0.5642 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.063e-05/0.1681, allocations: 15.98 kB / 0.5642 GB, free: 4.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.1682, allocations: 3.984 kB / 0.5643 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.1682, allocations: 4 kB / 0.5643 GB, free: 4.254 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.772e-05/0.1682, allocations: 79.28 kB / 0.5643 GB, free: 4.176 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1683, allocations: 0 / 0.5643 GB, free: 4.176 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002483/0.1685, allocations: 8 kB / 0.5643 GB, free: 4.168 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.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.00067/0.1692, allocations: 0.7202 MB / 0.565 GB, free: 3.418 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002529/0.1695, allocations: 55.95 kB / 0.5651 GB, free: 3.363 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1695, allocations: 0 / 0.5651 GB, free: 3.363 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.1696, allocations: 31.97 kB / 0.5651 GB, free: 3.332 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.1699, allocations: 11.28 kB / 0.5651 GB, free: 3.324 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004892/0.1704, allocations: 162.2 kB / 0.5653 GB, free: 3.129 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.1707, allocations: 0.6731 MB / 0.5659 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.653e-05/0.1708, allocations: 7.984 kB / 0.566 GB, free: 2.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/0.1708, allocations: 11.44 kB / 0.566 GB, free: 2.41 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1708, allocations: 4 kB / 0.566 GB, free: 2.406 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01184/0.1827, allocations: 1.296 MB / 0.5672 GB, free: 1.227 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.1829, allocations: 182.1 kB / 0.5674 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/1.967, allocations: 3.938 kB / 0.5674 GB, free: 0.9688 MB / 430.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)