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.00886/0.008861, allocations: 99.7 kB / 15.73 MB, free: 6.492 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.001981/0.001981, allocations: 198 kB / 16.67 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.9914/0.9914, allocations: 143 MB / 433.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 67.89 kB / 0.5951 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4145, allocations: 82.03 MB / 0.6752 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.002063/0.4166, allocations: 0.5786 MB / 0.6758 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000296/0.4169, allocations: 49.95 kB / 0.6758 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.912e-05/0.4169, allocations: 0 / 0.6758 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.762e-05/0.417, allocations: 0 / 0.6758 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.417, allocations: 1.531 kB / 0.6758 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002491/0.4173, allocations: 15.2 kB / 0.6758 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.179e-05/0.4173, allocations: 2.188 kB / 0.6758 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.998e-05/0.4174, allocations: 5.141 kB / 0.6758 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.719e-05/0.4174, allocations: 5.156 kB / 0.6758 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.647e-05/0.4174, allocations: 5.297 kB / 0.6758 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.4175, allocations: 3.938 kB / 0.6759 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-05/0.4176, allocations: 9.188 kB / 0.6759 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.958e-06/0.4176, allocations: 0 / 0.6759 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.848e-05/0.4176, allocations: 1.094 kB / 0.6759 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.18e-05/0.4177, allocations: 19.72 kB / 0.6759 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4177, allocations: 1.094 kB / 0.6759 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.784e-06/0.4177, allocations: 0 / 0.6759 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.4177, allocations: 0 / 0.6759 GB, free: 0.8164 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.0002671/0.418, allocations: 312 kB / 0.6762 GB, free: 476 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.4181, allocations: 14.52 kB / 0.6762 GB, free: 472 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.375e-05/0.4181, allocations: 30.75 kB / 0.6762 GB, free: 432 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.728e-05/0.4181, allocations: 2.312 kB / 0.6762 GB, free: 432 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.236e-05/0.4182, allocations: 160.4 kB / 0.6764 GB, free: 232 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.4182, allocations: 4.375 kB / 0.6764 GB, free: 228 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.4182, allocations: 1.469 kB / 0.6764 GB, free: 228 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.726e-05/0.4184, allocations: 38.06 kB / 0.6764 GB, free: 188 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.4184, allocations: 7.875 kB / 0.6764 GB, free: 180 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.4184, allocations: 7.984 kB / 0.6764 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.4184, allocations: 1.438 kB / 0.6764 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.539e-05/0.4184, allocations: 2.344 kB / 0.6764 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.4186, allocations: 148.4 kB / 0.6766 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 6.181e-05/0.4187, allocations: 22.56 kB / 0.6766 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.57e-05/0.4187, allocations: 12.14 kB / 0.6766 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001817/0.4189, allocations: 79.3 kB / 0.6767 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.4189, allocations: 39.56 kB / 0.6767 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/0.4189, allocations: 0 / 0.6767 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001776/0.4191, allocations: 50.94 kB / 0.6768 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.4192, allocations: 51.41 kB / 0.6768 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.514e-05/0.4192, allocations: 90.8 kB / 0.6769 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.4193, allocations: 25.7 kB / 0.6769 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.047e-05/0.4193, allocations: 80.98 kB / 0.677 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.4193, allocations: 4.969 kB / 0.677 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.4194, allocations: 23.98 kB / 0.677 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.4195, allocations: 311.8 kB / 0.6773 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.64e-05/0.4196, allocations: 2.531 kB / 0.6773 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.227e-05/0.4196, allocations: 1.188 kB / 0.6773 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.534e-05/0.4196, allocations: 18.27 kB / 0.6774 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4196, allocations: 0 / 0.6774 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.336e-05/0.4197, allocations: 41.69 kB / 0.6774 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.4198, allocations: 9.344 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.4198, allocations: 3.938 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4198, allocations: 1.125 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.183e-05/0.4199, allocations: 2.469 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.4199, allocations: 1.188 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.789e-05/0.4199, allocations: 2.391 kB / 0.6774 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.42, allocations: 1.094 kB / 0.6774 GB, free: 15.07 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.737e-05/0.42, allocations: 110.9 kB / 0.6775 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.4201, allocations: 1.062 kB / 0.6775 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.4202, allocations: 55.66 kB / 0.6776 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.4202, allocations: 1.25 kB / 0.6776 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4202, allocations: 0 / 0.6776 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.4202, allocations: 1.344 kB / 0.6776 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.4203, allocations: 150.8 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4204, allocations: 0.9688 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.997e-05/0.4204, allocations: 2.062 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4204, allocations: 1 kB / 0.6777 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.4204, allocations: 5.281 kB / 0.6777 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4204, allocations: 0 / 0.6777 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4204, allocations: 4.031 kB / 0.6777 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001027/0.4206, allocations: 65.69 kB / 0.6778 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.55e-05/0.4206, allocations: 78.61 kB / 0.6779 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.4206, allocations: 3.938 kB / 0.6779 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.537e-05/0.4207, allocations: 5.109 kB / 0.6779 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.4207, allocations: 1.25 kB / 0.6779 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.4207, allocations: 1.531 kB / 0.6779 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 2.966e-05/0.4208, allocations: 79.31 kB / 0.678 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4208, allocations: 0 / 0.678 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002911/0.4211, allocations: 7.875 kB / 0.678 GB, free: 14.44 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.0004886/0.4216, allocations: 0.603 MB / 0.6786 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 9.129e-05/0.4217, allocations: 23.61 kB / 0.6786 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4217, allocations: 0 / 0.6786 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.131e-05/0.4217, allocations: 7.781 kB / 0.6786 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.4219, allocations: 1.344 kB / 0.6786 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004994/0.4224, allocations: 121.6 kB / 0.6787 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.4227, allocations: 0.6754 MB / 0.6794 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.622e-05/0.4227, allocations: 1.062 kB / 0.6794 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.742e-05/0.4227, allocations: 9.969 kB / 0.6794 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of SimCode: time 3.81e-07/0.4227, allocations: 4.125 kB / 0.6794 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.4401, allocations: 1.077 MB / 0.6804 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.476/7.917, allocations: 10.02 kB / 0.6804 GB, free: 12.34 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)