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.001609/0.001609, allocations: 108 kB / 15.6 MB, free: 132 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.001861/0.001861, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002275/0.002275, allocations: 294.5 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9387/0.9387, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003028/0.003028, allocations: 100.4 kB / 0.5954 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.146, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001688/0.1477, allocations: 0.5641 MB / 0.6808 GB, free: 24 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002438/0.148, allocations: 56.53 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.355e-05/0.148, allocations: 0 / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.079e-05/0.148, allocations: 5.75 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.859e-06/0.148, allocations: 0 / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.1482, allocations: 16 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.708e-05/0.1483, allocations: 3.938 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.756e-05/0.1483, allocations: 3.984 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.361e-05/0.1483, allocations: 6.625 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.921e-05/0.1484, allocations: 4 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.1484, allocations: 3.984 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.92e-05/0.1484, allocations: 4 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-06/0.1485, allocations: 0 / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.1485, allocations: 4 kB / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.562e-05/0.1486, allocations: 15.92 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1486, allocations: 0.7812 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1486, allocations: 0 / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.1486, allocations: 0.875 kB / 0.681 GB, free: 15.91 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.0002762/0.1489, allocations: 320.1 kB / 0.6813 GB, free: 15.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1489, allocations: 11.97 kB / 0.6813 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.825e-05/0.1489, allocations: 31.88 kB / 0.6813 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.26e-05/0.149, allocations: 4.938 kB / 0.6813 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.525e-05/0.1491, allocations: 160.4 kB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.1491, allocations: 1.312 kB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-06/0.1491, allocations: 384 / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.784e-05/0.1492, allocations: 42.25 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1492, allocations: 3.938 kB / 0.6815 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.1492, allocations: 0 / 0.6815 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1492, allocations: 3.984 kB / 0.6815 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.104e-05/0.1493, allocations: 8 kB / 0.6815 GB, free: 15.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.1494, allocations: 142 kB / 0.6817 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.515e-05/0.1494, allocations: 34.5 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.57e-05/0.1495, allocations: 8.859 kB / 0.6817 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.1496, allocations: 81.17 kB / 0.6818 GB, free: 14.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.1497, allocations: 30.56 kB / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1497, allocations: 0 / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001273/0.1498, allocations: 53.56 kB / 0.6819 GB, free: 14.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.1498, allocations: 51.41 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.981e-05/0.1499, allocations: 89.86 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.1499, allocations: 25.83 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.238e-05/0.1499, allocations: 84.14 kB / 0.6821 GB, free: 14.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.1499, allocations: 7.844 kB / 0.6821 GB, free: 14.51 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.322e-05/0.15, allocations: 21.7 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1501, allocations: 314.8 kB / 0.6824 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.199e-05/0.1501, allocations: 4 kB / 0.6824 GB, free: 14.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.816e-06/0.1501, allocations: 0 / 0.6824 GB, free: 14.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.054e-05/0.1502, allocations: 16.8 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1502, allocations: 4.062 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.02e-05/0.1502, allocations: 41.62 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.1503, allocations: 8 kB / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1503, allocations: 3.938 kB / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.1503, allocations: 0 / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.054e-05/0.1503, allocations: 4 kB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1503, allocations: 0 / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.509e-05/0.1504, allocations: 4 kB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-06/0.1504, allocations: 0 / 0.6825 GB, free: 14.07 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.108e-05/0.1504, allocations: 114.5 kB / 0.6826 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.1505, allocations: 3.984 kB / 0.6826 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.1e-05/0.1506, allocations: 48.75 kB / 0.6827 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1506, allocations: 0 / 0.6827 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1506, allocations: 0 / 0.6827 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1506, allocations: 3.938 kB / 0.6827 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.014e-05/0.1507, allocations: 149.7 kB / 0.6828 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1507, allocations: 4 kB / 0.6828 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.073e-05/0.1507, allocations: 0 / 0.6828 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1507, allocations: 4.031 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.1507, allocations: 7.938 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1507, allocations: 0 / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1508, allocations: 0 / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.96e-05/0.1508, allocations: 61.12 kB / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.01e-05/0.1509, allocations: 77.11 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.1509, allocations: 11.92 kB / 0.683 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.397e-05/0.1509, allocations: 8 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.426e-05/0.1509, allocations: 4.031 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.1509, allocations: 0 / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.22e-05/0.151, allocations: 75.28 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.151, allocations: 0 / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001866/0.1512, allocations: 4 kB / 0.6831 GB, free: 13.4 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.0003573/0.1515, allocations: 0.6085 MB / 0.6837 GB, free: 12.76 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.172e-05/0.1516, allocations: 19.92 kB / 0.6837 GB, free: 12.74 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1516, allocations: 0 / 0.6837 GB, free: 12.74 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.1517, allocations: 7.938 kB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.1518, allocations: 9.766 kB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.1521, allocations: 118.6 kB / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.1523, allocations: 0.673 MB / 0.6845 GB, free: 11.87 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.242e-05/0.1524, allocations: 0 / 0.6845 GB, free: 11.87 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.224e-05/0.1524, allocations: 11.44 kB / 0.6845 GB, free: 11.86 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1524, allocations: 0 / 0.6845 GB, free: 11.86 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.168, allocations: 1.039 MB / 0.6855 GB, free: 10.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.23/7.398, allocations: 5.281 kB / 0.6855 GB, free: 10.91 MB / 494.1 MB (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)