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-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-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(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.007064/0.007064, allocations: 101.7 kB / 15.73 MB, free: 6.453 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.001298/0.001299, allocations: 191.3 kB / 16.67 MB, free: 6.355 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.547/1.547, allocations: 222.9 MB / 240.4 MB, free: 4.266 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/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-master/package.mo): time 1.038/1.038, allocations: 143.3 MB / 433.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 63.89 kB / 0.5953 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4113, allocations: 82.03 MB / 0.6755 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001634/0.4129, allocations: 0.5805 MB / 0.676 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002638/0.4132, allocations: 53.61 kB / 0.6761 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.818e-05/0.4132, allocations: 0 / 0.6761 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.321e-05/0.4133, allocations: 0 / 0.6761 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.391e-06/0.4133, allocations: 0 / 0.6761 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.4135, allocations: 8.109 kB / 0.6761 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.801e-05/0.4136, allocations: 6.297 kB / 0.6761 GB, free: 500 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.951e-05/0.4136, allocations: 10.44 kB / 0.6761 GB, free: 492 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.281e-05/0.4136, allocations: 0 / 0.6761 GB, free: 492 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.009e-05/0.4137, allocations: 1.5 kB / 0.6761 GB, free: 492 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.4137, allocations: 3.938 kB / 0.6761 GB, free: 488 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.735e-05/0.4137, allocations: 9.438 kB / 0.6761 GB, free: 484 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.4138, allocations: 0 / 0.6761 GB, free: 484 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.4138, allocations: 13.16 kB / 0.6761 GB, free: 472 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.791e-05/0.4139, allocations: 3.312 kB / 0.6761 GB, free: 472 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4139, allocations: 0.9062 kB / 0.6761 GB, free: 472 kB / 0.4981 GB Notification: Performance of FrontEnd: time 2.044e-06/0.4139, allocations: 0 / 0.6761 GB, free: 472 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.4139, allocations: 3.938 kB / 0.6761 GB, free: 468 kB / 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.0002256/0.4141, allocations: 325 kB / 0.6764 GB, free: 100 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.4142, allocations: 10.03 kB / 0.6765 GB, free: 100 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.927e-05/0.4142, allocations: 30.75 kB / 0.6765 GB, free: 60 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.039e-05/0.4142, allocations: 2.094 kB / 0.6765 GB, free: 60 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.4143, allocations: 160.4 kB / 0.6766 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.4143, allocations: 1.531 kB / 0.6766 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.4144, allocations: 1.594 kB / 0.6766 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.4145, allocations: 41.64 kB / 0.6767 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4145, allocations: 11.88 kB / 0.6767 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-06/0.4145, allocations: 0 / 0.6767 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.4145, allocations: 1.094 kB / 0.6767 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.195e-05/0.4145, allocations: 6.25 kB / 0.6767 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.4147, allocations: 147.8 kB / 0.6768 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.327e-05/0.4148, allocations: 23.73 kB / 0.6769 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.905e-05/0.4148, allocations: 6.984 kB / 0.6769 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001675/0.415, allocations: 84.09 kB / 0.6769 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.415, allocations: 35.72 kB / 0.677 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.415, allocations: 0 / 0.677 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001379/0.4151, allocations: 47.3 kB / 0.677 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.4152, allocations: 51.41 kB / 0.6771 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.039e-05/0.4153, allocations: 98.89 kB / 0.6772 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.4153, allocations: 25.7 kB / 0.6772 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.524e-05/0.4153, allocations: 84.14 kB / 0.6773 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.4153, allocations: 5.438 kB / 0.6773 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.4154, allocations: 12.09 kB / 0.6773 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4155, allocations: 312 kB / 0.6776 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.4155, allocations: 1.219 kB / 0.6776 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.085e-05/0.4156, allocations: 6.312 kB / 0.6776 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.366e-05/0.4156, allocations: 14.19 kB / 0.6776 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.4156, allocations: 0 / 0.6776 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.801e-05/0.4157, allocations: 41.77 kB / 0.6776 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.4157, allocations: 9.938 kB / 0.6777 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.4157, allocations: 3.938 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.4157, allocations: 0 / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.984e-05/0.4158, allocations: 3.594 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.4158, allocations: 3.984 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.324e-05/0.4158, allocations: 1.156 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.4158, allocations: 9.156 kB / 0.6777 GB, free: 14.7 MB / 0.5137 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 7.126e-05/0.4159, allocations: 107.1 kB / 0.6778 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.4159, allocations: 4 kB / 0.6778 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.416, allocations: 51.84 kB / 0.6778 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.416, allocations: 1.312 kB / 0.6778 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.416, allocations: 0 / 0.6778 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.416, allocations: 0.9688 kB / 0.6778 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.4161, allocations: 150.8 kB / 0.678 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.4162, allocations: 1.281 kB / 0.678 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.41e-05/0.4162, allocations: 6.953 kB / 0.678 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.4162, allocations: 0 / 0.678 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.4162, allocations: 5.156 kB / 0.678 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4162, allocations: 4.031 kB / 0.678 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4162, allocations: 0 / 0.678 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.173e-05/0.4163, allocations: 66.8 kB / 0.6781 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.4163, allocations: 77.11 kB / 0.6781 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.4164, allocations: 5.25 kB / 0.6781 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.4164, allocations: 0 / 0.6781 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.747e-05/0.4164, allocations: 1.406 kB / 0.6781 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-06/0.4164, allocations: 1.281 kB / 0.6781 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.635e-05/0.4165, allocations: 83.22 kB / 0.6782 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4165, allocations: 0 / 0.6782 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001767/0.4166, allocations: 4.188 kB / 0.6782 GB, free: 14.08 MB / 0.5137 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.0004334/0.4171, allocations: 0.6089 MB / 0.6788 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 8.074e-05/0.4172, allocations: 14.97 kB / 0.6788 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4172, allocations: 0 / 0.6788 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.792e-05/0.4172, allocations: 8.625 kB / 0.6788 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.4173, allocations: 1.094 kB / 0.6788 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.4176, allocations: 118.9 kB / 0.679 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.4179, allocations: 0.6703 MB / 0.6796 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.293e-05/0.4179, allocations: 2.531 kB / 0.6796 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.159e-05/0.418, allocations: 8.5 kB / 0.6796 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.418, allocations: 4 kB / 0.6796 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1737/0.5917, allocations: 1.077 MB / 0.6807 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.652, allocations: 16.58 kB / 0.6807 GB, free: 11.98 MB / 0.5137 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)