Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.004748/0.004748, allocations: 102.5 kB / 15.74 MB, free: 6.027 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.001211/0.001211, allocations: 196.1 kB / 16.67 MB, free: 5.961 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 282.9 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9661/0.9661, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00255/0.00255, allocations: 96.36 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1456, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002331/0.148, allocations: 1.504 MB / 0.7674 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000308/0.1483, allocations: 132.4 kB / 0.7675 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.443e-05/0.1484, allocations: 4 kB / 0.7675 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.228e-05/0.1484, allocations: 3.938 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.724e-05/0.1484, allocations: 0 / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.1486, allocations: 19.92 kB / 0.7675 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.584e-05/0.1487, allocations: 27.92 kB / 0.7676 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.279e-05/0.1488, allocations: 11.98 kB / 0.7676 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.895e-05/0.1488, allocations: 15.98 kB / 0.7676 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.312e-05/0.1489, allocations: 15.92 kB / 0.7676 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.1489, allocations: 4 kB / 0.7676 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.366e-05/0.149, allocations: 15.98 kB / 0.7676 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.276e-05/0.149, allocations: 7.938 kB / 0.7676 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.149, allocations: 23.86 kB / 0.7677 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.1491, allocations: 36.11 kB / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1491, allocations: 0 / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.263e-06/0.1491, allocations: 4 kB / 0.7677 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.1491, allocations: 0 / 0.7677 GB, free: 7.098 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004327/0.1496, allocations: 343.4 kB / 0.768 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.1496, allocations: 12.03 kB / 0.768 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.372e-05/0.1497, allocations: 34.73 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.514e-05/0.1497, allocations: 4.938 kB / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1498, allocations: 164.3 kB / 0.7682 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.1498, allocations: 12.31 kB / 0.7682 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.1499, allocations: 4.375 kB / 0.7682 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.15, allocations: 54.22 kB / 0.7683 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.15, allocations: 3.938 kB / 0.7683 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.1501, allocations: 4 kB / 0.7683 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.1501, allocations: 4 kB / 0.7683 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.1502, allocations: 39.95 kB / 0.7683 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003368/0.1506, allocations: 260.9 kB / 0.7686 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002776/0.1509, allocations: 62.53 kB / 0.7687 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.111e-05/0.151, allocations: 24.84 kB / 0.7687 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00011/0.1511, allocations: 85.09 kB / 0.7688 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.1511, allocations: 30.56 kB / 0.7688 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.1511, allocations: 0 / 0.7688 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003581/0.1515, allocations: 97.56 kB / 0.7689 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.1515, allocations: 59.41 kB / 0.7689 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.202e-05/0.1516, allocations: 101.8 kB / 0.769 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.1516, allocations: 25.7 kB / 0.7691 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.587e-05/0.1517, allocations: 84.12 kB / 0.7691 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.392e-05/0.1517, allocations: 7.953 kB / 0.7692 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.1517, allocations: 21.72 kB / 0.7692 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1519, allocations: 314.8 kB / 0.7695 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.616e-05/0.1519, allocations: 23.97 kB / 0.7695 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.242e-05/0.152, allocations: 19.98 kB / 0.7695 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.1522, allocations: 49.22 kB / 0.7696 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1522, allocations: 0 / 0.7696 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001947/0.1524, allocations: 77.58 kB / 0.7696 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.1524, allocations: 8 kB / 0.7696 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.1524, allocations: 4 kB / 0.7696 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.1524, allocations: 0 / 0.7696 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.418e-05/0.1525, allocations: 11.98 kB / 0.7697 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1525, allocations: 0 / 0.7697 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.616e-05/0.1526, allocations: 7.984 kB / 0.7697 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.1526, allocations: 3.938 kB / 0.7697 GB, free: 4.824 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 (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.919e-05/0.1527, allocations: 118.4 kB / 0.7698 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.1527, allocations: 3.953 kB / 0.7698 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002252/0.1529, allocations: 89.02 kB / 0.7699 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.153, allocations: 4 kB / 0.7699 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.153, allocations: 0 / 0.7699 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.153, allocations: 3.984 kB / 0.7699 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.1532, allocations: 165.6 kB / 0.77 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1532, allocations: 0 / 0.77 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.66e-05/0.1532, allocations: 11.98 kB / 0.77 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1532, allocations: 0 / 0.77 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-06/0.1533, allocations: 8 kB / 0.7701 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.1533, allocations: 4 kB / 0.7701 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1533, allocations: 3.984 kB / 0.7701 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.1535, allocations: 167.5 kB / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.792e-05/0.1536, allocations: 77.11 kB / 0.7703 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.1536, allocations: 0 / 0.7703 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.1537, allocations: 15.98 kB / 0.7703 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.1537, allocations: 7.984 kB / 0.7703 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.1537, allocations: 0 / 0.7703 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.176e-05/0.1538, allocations: 87.22 kB / 0.7704 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1538, allocations: 0 / 0.7704 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002978/0.1541, allocations: 8 kB / 0.7704 GB, free: 3.965 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.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.0005318/0.1546, allocations: 0.7123 MB / 0.7711 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002033/0.1548, allocations: 44.28 kB / 0.7711 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.1548, allocations: 3.938 kB / 0.7712 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.739e-05/0.1549, allocations: 27.97 kB / 0.7712 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.1552, allocations: 8 kB / 0.7712 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004304/0.1557, allocations: 143.3 kB / 0.7713 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.1559, allocations: 0.6729 MB / 0.772 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.118e-05/0.156, allocations: 11.97 kB / 0.772 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.156, allocations: 15.44 kB / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of SimCode: time 2.01e-07/0.156, allocations: 0 / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9115/1.068, allocations: 1.585 MB / 0.7736 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/14.31, allocations: 16.03 kB / 0.7736 GB, free: 0.7266 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)