Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.004571/0.004571, allocations: 100.2 kB / 15.73 MB, free: 6.469 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.001304/0.001304, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002054/0.002054, allocations: 278.5 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9159/0.9159, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001897, allocations: 95.98 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1555, allocations: 86.98 MB / 0.766 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001543/0.157, allocations: 0.5722 MB / 0.7665 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002405/0.1573, allocations: 51.78 kB / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.378e-05/0.1573, allocations: 0 / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.338e-05/0.1573, allocations: 0 / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.662e-06/0.1574, allocations: 4 kB / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.1576, allocations: 11.98 kB / 0.7666 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.183e-05/0.1576, allocations: 4 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.837e-05/0.1577, allocations: 3.938 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.268e-05/0.1577, allocations: 3.938 kB / 0.7666 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.15e-05/0.1577, allocations: 8 kB / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.295e-06/0.1577, allocations: 0 / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.473e-05/0.1578, allocations: 11.98 kB / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.819e-06/0.1578, allocations: 3.984 kB / 0.7666 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.82e-05/0.1578, allocations: 4 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.263e-05/0.1579, allocations: 4 kB / 0.7666 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1579, allocations: 4 kB / 0.7666 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.646e-06/0.1579, allocations: 3.984 kB / 0.7666 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.1579, allocations: 3.938 kB / 0.7666 GB, free: 8.18 MB / 0.5606 GB 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.0002584/0.1582, allocations: 315.6 kB / 0.7669 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.1582, allocations: 8.031 kB / 0.7669 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.602e-05/0.1583, allocations: 34.69 kB / 0.767 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.03e-05/0.1583, allocations: 0.9375 kB / 0.767 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.167e-05/0.1584, allocations: 164.7 kB / 0.7671 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.1584, allocations: 4.375 kB / 0.7671 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-06/0.1584, allocations: 8.359 kB / 0.7671 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.402e-05/0.1585, allocations: 30.27 kB / 0.7672 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1585, allocations: 3.938 kB / 0.7672 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.1585, allocations: 0 / 0.7672 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1585, allocations: 3.938 kB / 0.7672 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3e-05/0.1586, allocations: 11.98 kB / 0.7672 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001343/0.1587, allocations: 145.6 kB / 0.7673 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.11e-05/0.1588, allocations: 26.61 kB / 0.7674 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.768e-05/0.1588, allocations: 12.91 kB / 0.7674 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.1589, allocations: 81.11 kB / 0.7674 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.159, allocations: 30.56 kB / 0.7675 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.159, allocations: 0 / 0.7675 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001319/0.1591, allocations: 53.47 kB / 0.7675 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.1591, allocations: 51.41 kB / 0.7676 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.41e-05/0.1592, allocations: 97.98 kB / 0.7677 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.1592, allocations: 25.7 kB / 0.7677 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.952e-05/0.1592, allocations: 80.14 kB / 0.7678 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.1593, allocations: 4 kB / 0.7678 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/0.1593, allocations: 13.72 kB / 0.7678 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.552e-05/0.1594, allocations: 310.8 kB / 0.7681 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.1594, allocations: 3.984 kB / 0.7681 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.027e-06/0.1594, allocations: 4 kB / 0.7681 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.07e-05/0.1595, allocations: 20.86 kB / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1595, allocations: 0 / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.871e-05/0.1595, allocations: 37.7 kB / 0.7681 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.1595, allocations: 4 kB / 0.7681 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1596, allocations: 7.938 kB / 0.7682 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1596, allocations: 7.922 kB / 0.7682 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.791e-05/0.1596, allocations: 0 / 0.7682 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1596, allocations: 4 kB / 0.7682 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.1596, allocations: 0 / 0.7682 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-06/0.1597, allocations: 0 / 0.7682 GB, free: 6.352 MB / 0.5606 GB 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 5.832e-05/0.1597, allocations: 110.5 kB / 0.7683 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-06/0.1597, allocations: 0 / 0.7683 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.975e-05/0.1598, allocations: 52.69 kB / 0.7683 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1598, allocations: 0 / 0.7683 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1598, allocations: 4 kB / 0.7683 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1599, allocations: 4 kB / 0.7683 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.788e-05/0.1599, allocations: 149.6 kB / 0.7685 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.16, allocations: 0 / 0.7685 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.279e-05/0.16, allocations: 8.031 kB / 0.7685 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.16, allocations: 0 / 0.7685 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.16, allocations: 3.938 kB / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.16, allocations: 0 / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.16, allocations: 4 kB / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.137e-05/0.1601, allocations: 72.97 kB / 0.7686 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.1601, allocations: 77.11 kB / 0.7686 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.1602, allocations: 3.938 kB / 0.7686 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.026e-05/0.1602, allocations: 4.031 kB / 0.7686 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.187e-05/0.1602, allocations: 4 kB / 0.7686 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.1602, allocations: 3.984 kB / 0.7686 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.617e-05/0.1602, allocations: 75.28 kB / 0.7687 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1602, allocations: 0 / 0.7687 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001856/0.1604, allocations: 4 kB / 0.7687 GB, free: 5.684 MB / 0.5606 GB 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.0003844/0.1608, allocations: 0.6085 MB / 0.7693 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.3e-05/0.1609, allocations: 11.94 kB / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1609, allocations: 0 / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.396e-05/0.1609, allocations: 8 kB / 0.7693 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.1611, allocations: 3.984 kB / 0.7693 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003014/0.1614, allocations: 110.8 kB / 0.7694 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.1616, allocations: 0.6807 MB / 0.7701 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.304e-05/0.1617, allocations: 0 / 0.7701 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.1617, allocations: 11.44 kB / 0.7701 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.1617, allocations: 0 / 0.7701 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01703/0.1787, allocations: 1.09 MB / 0.7712 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.063/7.242, allocations: 8 kB / 0.7712 GB, free: 3.168 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)