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.0007581/0.0007581, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.0007903/0.0007903, allocations: 172.8 kB / 16.27 MB, free: 6.656 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.225/1.225, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001699/0.001699, allocations: 266.2 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8854/0.8854, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004216/0.0004217, allocations: 22.22 kB / 0.5988 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1447, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.0006135/0.1453, allocations: 318.5 kB / 0.6855 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002374/0.1456, allocations: 47.86 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.946e-06/0.1456, allocations: 0 / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.127e-05/0.1456, allocations: 1.844 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.739e-06/0.1457, allocations: 0 / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.1458, allocations: 11.94 kB / 0.6856 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.278e-05/0.1459, allocations: 7.922 kB / 0.6856 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.253e-05/0.1459, allocations: 4 kB / 0.6856 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.468e-05/0.1459, allocations: 10.58 kB / 0.6856 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.926e-05/0.1459, allocations: 0 / 0.6856 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.306e-06/0.146, allocations: 0 / 0.6856 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.525e-05/0.146, allocations: 8 kB / 0.6856 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.158e-06/0.146, allocations: 0 / 0.6856 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/0.1461, allocations: 29.7 kB / 0.6857 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.563e-05/0.1461, allocations: 11.92 kB / 0.6857 GB, free: 14.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1461, allocations: 0.5 kB / 0.6857 GB, free: 14.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1462, allocations: 0 / 0.6857 GB, free: 14.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.765e-06/0.1462, allocations: 0.5 kB / 0.6857 GB, free: 14.5 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.000215/0.1464, allocations: 313.3 kB / 0.686 GB, free: 14.15 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.1464, allocations: 8.031 kB / 0.686 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.335e-05/0.1465, allocations: 38.73 kB / 0.686 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.563e-05/0.1465, allocations: 0.9375 kB / 0.686 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.785e-05/0.1466, allocations: 169.2 kB / 0.6862 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.266e-06/0.1466, allocations: 384 / 0.6862 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-06/0.1466, allocations: 1.562 kB / 0.6862 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.311e-05/0.1467, allocations: 38.19 kB / 0.6862 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.1467, allocations: 5.438 kB / 0.6862 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-06/0.1467, allocations: 0 / 0.6862 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1467, allocations: 0 / 0.6862 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.652e-05/0.1467, allocations: 4 kB / 0.6862 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001163/0.1469, allocations: 150.6 kB / 0.6864 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.814e-05/0.1469, allocations: 31.62 kB / 0.6864 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.681e-05/0.147, allocations: 6.484 kB / 0.6864 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.1471, allocations: 81.17 kB / 0.6865 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.1471, allocations: 35.25 kB / 0.6865 GB, free: 13.46 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1471, allocations: 0 / 0.6865 GB, free: 13.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001093/0.1472, allocations: 46.22 kB / 0.6866 GB, free: 13.41 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.1473, allocations: 58.06 kB / 0.6866 GB, free: 13.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.958e-05/0.1473, allocations: 89.86 kB / 0.6867 GB, free: 13.24 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.1473, allocations: 29.64 kB / 0.6867 GB, free: 13.21 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.1474, allocations: 80.14 kB / 0.6868 GB, free: 13.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.1474, allocations: 7.844 kB / 0.6868 GB, free: 13.12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.036e-05/0.1474, allocations: 13.72 kB / 0.6868 GB, free: 13.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.631e-05/0.1475, allocations: 320.7 kB / 0.6871 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-06/0.1475, allocations: 0 / 0.6871 GB, free: 12.78 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.176e-06/0.1475, allocations: 3.938 kB / 0.6871 GB, free: 12.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.544e-05/0.1476, allocations: 18.58 kB / 0.6872 GB, free: 12.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1476, allocations: 3.938 kB / 0.6872 GB, free: 12.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.844e-05/0.1476, allocations: 37.69 kB / 0.6872 GB, free: 12.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.1476, allocations: 4.875 kB / 0.6872 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1476, allocations: 3.938 kB / 0.6872 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.971e-06/0.1477, allocations: 0.7188 kB / 0.6872 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.665e-05/0.1477, allocations: 4 kB / 0.6872 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.164e-06/0.1477, allocations: 0.625 kB / 0.6872 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.1477, allocations: 0 / 0.6872 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1477, allocations: 5.406 kB / 0.6872 GB, free: 12.69 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 5.71e-05/0.1478, allocations: 110.5 kB / 0.6873 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-06/0.1478, allocations: 4.594 kB / 0.6873 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.326e-05/0.1479, allocations: 52.97 kB / 0.6874 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1479, allocations: 0 / 0.6874 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.1479, allocations: 0 / 0.6874 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-06/0.1479, allocations: 0 / 0.6874 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.234e-05/0.148, allocations: 149.7 kB / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.148, allocations: 0 / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.212e-05/0.148, allocations: 4 kB / 0.6875 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.148, allocations: 0 / 0.6875 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.1481, allocations: 7.938 kB / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1481, allocations: 0 / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1481, allocations: 0 / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.61e-05/0.1481, allocations: 69.09 kB / 0.6876 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.333e-05/0.1482, allocations: 81.11 kB / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.1482, allocations: 3.938 kB / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.1482, allocations: 0 / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.115e-05/0.1482, allocations: 3.984 kB / 0.6877 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.1483, allocations: 0 / 0.6877 GB, free: 12.11 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.132e-05/0.1483, allocations: 79.28 kB / 0.6878 GB, free: 12.04 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1483, allocations: 4.031 kB / 0.6878 GB, free: 12.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000186/0.1485, allocations: 12 kB / 0.6878 GB, free: 12.02 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.0003296/0.1488, allocations: 0.6007 MB / 0.6884 GB, free: 11.39 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.493e-05/0.1489, allocations: 11.94 kB / 0.6884 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1489, allocations: 8.031 kB / 0.6884 GB, free: 11.37 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.643e-05/0.1489, allocations: 11.98 kB / 0.6884 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.149, allocations: 0 / 0.6884 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002394/0.1493, allocations: 108.4 kB / 0.6885 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.1495, allocations: 0.6769 MB / 0.6891 GB, free: 10.51 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.231e-05/0.1495, allocations: 4 kB / 0.6892 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.517e-05/0.1495, allocations: 7.438 kB / 0.6892 GB, free: 10.5 MB / 494.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1495, allocations: 0 / 0.6892 GB, free: 10.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5637/0.7132, allocations: 0.8816 MB / 0.69 GB, free: 9.762 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.7135, allocations: 219.9 kB / 0.6902 GB, free: 9.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.51/2.223, allocations: 3.938 kB / 0.6902 GB, free: 9.496 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)