Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001067/0.001067, 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.001343/0.001343, allocations: 195.1 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8807/0.8807, allocations: 143 MB / 433.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.91 kB / 0.5143 GB, free: 11.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1427, allocations: 82.04 MB / 0.5944 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001359/0.1441, allocations: 0.5741 MB / 0.595 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0001622/0.1443, allocations: 51.78 kB / 0.595 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.869e-06/0.1443, allocations: 0 / 0.595 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.051e-06/0.1443, allocations: 0 / 0.595 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.595e-06/0.1443, allocations: 0 / 0.595 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001301/0.1445, allocations: 15.98 kB / 0.595 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 2.434e-05/0.1445, allocations: 4 kB / 0.595 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.645e-05/0.1445, allocations: 8 kB / 0.595 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.496e-06/0.1446, allocations: 0 / 0.595 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.339e-05/0.1446, allocations: 3.938 kB / 0.595 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.213e-06/0.1446, allocations: 0 / 0.595 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.1446, allocations: 19.92 kB / 0.5951 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.023e-06/0.1446, allocations: 3.984 kB / 0.5951 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.317e-05/0.1447, allocations: 3.938 kB / 0.5951 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 4.836e-05/0.1447, allocations: 8 kB / 0.5951 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.1447, allocations: 0 / 0.5951 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.001e-06/0.1447, allocations: 0 / 0.5951 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.1447, allocations: 4 kB / 0.5951 GB, free: 8.77 MB / 0.4981 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.0001987/0.1449, allocations: 313.6 kB / 0.5954 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.634e-05/0.145, allocations: 12.03 kB / 0.5954 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.963e-05/0.145, allocations: 30.75 kB / 0.5954 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.307e-05/0.145, allocations: 0.9375 kB / 0.5954 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.079e-05/0.1451, allocations: 168.4 kB / 0.5956 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.592e-06/0.1451, allocations: 384 / 0.5956 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.605e-06/0.1451, allocations: 384 / 0.5956 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.588e-05/0.1452, allocations: 38.2 kB / 0.5956 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.1452, allocations: 3.938 kB / 0.5956 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-06/0.1452, allocations: 0 / 0.5956 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1452, allocations: 4 kB / 0.5956 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.043e-05/0.1452, allocations: 3.938 kB / 0.5956 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001049/0.1453, allocations: 153.7 kB / 0.5958 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.39e-05/0.1454, allocations: 18.61 kB / 0.5958 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.538e-05/0.1454, allocations: 12.92 kB / 0.5958 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.1455, allocations: 85.09 kB / 0.5959 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.1455, allocations: 34.56 kB / 0.5959 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.1455, allocations: 0 / 0.5959 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 8.887e-05/0.1456, allocations: 45.58 kB / 0.596 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.1457, allocations: 55.39 kB / 0.596 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.72e-05/0.1457, allocations: 89.86 kB / 0.5961 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/0.1457, allocations: 25.7 kB / 0.5961 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.223e-05/0.1458, allocations: 84.27 kB / 0.5962 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.1458, allocations: 7.906 kB / 0.5962 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.251e-05/0.1458, allocations: 13.72 kB / 0.5962 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.1459, allocations: 310.8 kB / 0.5965 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.795e-06/0.1459, allocations: 4 kB / 0.5965 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.323e-06/0.1459, allocations: 3.984 kB / 0.5965 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.45e-05/0.146, allocations: 16.86 kB / 0.5966 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.146, allocations: 0 / 0.5966 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.16e-05/0.146, allocations: 41.7 kB / 0.5966 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.186e-06/0.146, allocations: 4 kB / 0.5966 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.146, allocations: 3.938 kB / 0.5966 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.254e-06/0.1461, allocations: 0 / 0.5966 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.919e-05/0.1461, allocations: 7.984 kB / 0.5966 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.1461, allocations: 0 / 0.5966 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.099e-05/0.1461, allocations: 288 / 0.5966 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-06/0.1461, allocations: 3.938 kB / 0.5966 GB, free: 6.953 MB / 0.4981 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.005e-05/0.1462, allocations: 117.9 kB / 0.5967 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.1462, allocations: 0 / 0.5967 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.898e-05/0.1463, allocations: 56.62 kB / 0.5968 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1463, allocations: 0 / 0.5968 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1463, allocations: 0 / 0.5968 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-06/0.1463, allocations: 3.938 kB / 0.5968 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.401e-05/0.1464, allocations: 149.7 kB / 0.5969 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1464, allocations: 3.984 kB / 0.5969 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.026e-05/0.1464, allocations: 4 kB / 0.5969 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.1464, allocations: 0 / 0.5969 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-06/0.1464, allocations: 7.969 kB / 0.5969 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.1464, allocations: 0 / 0.5969 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1464, allocations: 0 / 0.5969 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.826e-05/0.1465, allocations: 61.12 kB / 0.597 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.644e-05/0.1465, allocations: 77.11 kB / 0.5971 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.248e-06/0.1465, allocations: 7.938 kB / 0.5971 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.508e-06/0.1465, allocations: 3.938 kB / 0.5971 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.627e-05/0.1466, allocations: 32 / 0.5971 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.1466, allocations: 8 kB / 0.5971 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.984e-05/0.1466, allocations: 75.28 kB / 0.5972 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1466, allocations: 4 kB / 0.5972 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001629/0.1468, allocations: 4 kB / 0.5972 GB, free: 6.281 MB / 0.4981 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.0003055/0.1471, allocations: 0.6085 MB / 0.5978 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.17e-05/0.1472, allocations: 15.94 kB / 0.5978 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.52e-07/0.1472, allocations: 0 / 0.5978 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.132e-05/0.1472, allocations: 4 kB / 0.5978 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001043/0.1473, allocations: 3.984 kB / 0.5978 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002235/0.1475, allocations: 122.5 kB / 0.5979 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.1477, allocations: 0.669 MB / 0.5986 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.322e-05/0.1477, allocations: 12.11 kB / 0.5986 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.614e-05/0.1478, allocations: 7.438 kB / 0.5986 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1478, allocations: 0 / 0.5986 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.895/2.043, allocations: 1.058 MB / 0.5996 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/9.839, allocations: 7.922 kB / 0.5996 GB, free: 3.766 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)