Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/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.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.007415/0.007415, allocations: 101.5 kB / 15.73 MB, free: 6.012 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.001813/0.001813, allocations: 196.9 kB / 16.67 MB, free: 5.949 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.309 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 1.071/1.071, allocations: 143 MB / 433.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 71.89 kB / 0.5951 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4217, allocations: 82.02 MB / 0.6752 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002592/0.4243, allocations: 1.517 MB / 0.6766 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0004185/0.4248, allocations: 118.1 kB / 0.6768 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.925e-05/0.4249, allocations: 1.5 kB / 0.6768 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 3.581e-05/0.4249, allocations: 11.92 kB / 0.6768 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.782e-05/0.425, allocations: 3.938 kB / 0.6768 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.4252, allocations: 22.3 kB / 0.6768 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 8.144e-05/0.4253, allocations: 33.05 kB / 0.6768 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.4255, allocations: 16.41 kB / 0.6768 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.593e-05/0.4255, allocations: 3.719 kB / 0.6769 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.456e-05/0.4256, allocations: 17.11 kB / 0.6769 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.4256, allocations: 2.812 kB / 0.6769 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.329e-05/0.4257, allocations: 14.61 kB / 0.6769 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.495e-05/0.4257, allocations: 9.219 kB / 0.6769 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.816e-05/0.4257, allocations: 10.59 kB / 0.6769 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.4258, allocations: 36.69 kB / 0.6769 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.4259, allocations: 0.9688 kB / 0.6769 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.006e-06/0.4259, allocations: 0 / 0.6769 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.4259, allocations: 3.938 kB / 0.6769 GB, free: 15.71 MB / 0.5137 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.0004649/0.4263, allocations: 345.6 kB / 0.6773 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.4264, allocations: 13.03 kB / 0.6773 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.712e-05/0.4264, allocations: 39.77 kB / 0.6773 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.4265, allocations: 7 kB / 0.6773 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.4266, allocations: 165.5 kB / 0.6775 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.4266, allocations: 2.469 kB / 0.6775 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.4267, allocations: 1.25 kB / 0.6775 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.4269, allocations: 57.14 kB / 0.6775 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.4269, allocations: 7.922 kB / 0.6776 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.4269, allocations: 1.031 kB / 0.6776 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.4269, allocations: 0.9688 kB / 0.6776 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.4271, allocations: 45.7 kB / 0.6776 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003878/0.4275, allocations: 265.7 kB / 0.6779 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.4278, allocations: 59.25 kB / 0.6779 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.919e-05/0.4279, allocations: 20.19 kB / 0.6779 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.428, allocations: 91.41 kB / 0.678 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.4281, allocations: 35.66 kB / 0.678 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.4281, allocations: 0 / 0.678 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0003611/0.4285, allocations: 86.55 kB / 0.6781 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.4285, allocations: 55.39 kB / 0.6782 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.4286, allocations: 103 kB / 0.6783 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.4287, allocations: 26.8 kB / 0.6783 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/0.4287, allocations: 89.16 kB / 0.6784 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.4287, allocations: 8.891 kB / 0.6784 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.4288, allocations: 12.91 kB / 0.6784 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4289, allocations: 317 kB / 0.6787 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.793e-05/0.429, allocations: 17.66 kB / 0.6787 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.688e-05/0.4291, allocations: 23.05 kB / 0.6788 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.4292, allocations: 58.52 kB / 0.6788 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4292, allocations: 1.188 kB / 0.6788 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002044/0.4294, allocations: 75.69 kB / 0.6789 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.4295, allocations: 4.906 kB / 0.6789 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.4295, allocations: 1.219 kB / 0.6789 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.4295, allocations: 0 / 0.6789 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.151e-05/0.4296, allocations: 14.92 kB / 0.6789 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.4296, allocations: 5.438 kB / 0.6789 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.519e-05/0.4297, allocations: 6.797 kB / 0.6789 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.319e-06/0.4297, allocations: 1.375 kB / 0.6789 GB, free: 13.69 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 (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 8.526e-05/0.4298, allocations: 112.5 kB / 0.679 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.4298, allocations: 1.438 kB / 0.679 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002546/0.4301, allocations: 90.64 kB / 0.6791 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.4301, allocations: 0 / 0.6791 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.4301, allocations: 5.125 kB / 0.6791 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4301, allocations: 0 / 0.6791 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.4303, allocations: 168.6 kB / 0.6793 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4303, allocations: 0 / 0.6793 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.538e-05/0.4303, allocations: 11.2 kB / 0.6793 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.4304, allocations: 0 / 0.6793 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.4304, allocations: 1.188 kB / 0.6793 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.4304, allocations: 0 / 0.6793 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4304, allocations: 5.156 kB / 0.6793 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002534/0.4306, allocations: 178.4 kB / 0.6795 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 3.591e-05/0.4307, allocations: 86.08 kB / 0.6795 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.4307, allocations: 1.469 kB / 0.6795 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.4308, allocations: 7.016 kB / 0.6796 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.4308, allocations: 10.77 kB / 0.6796 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.4309, allocations: 5.594 kB / 0.6796 GB, free: 13 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.814e-05/0.4309, allocations: 77.75 kB / 0.6796 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4309, allocations: 1.031 kB / 0.6796 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002257/0.4311, allocations: 6.594 kB / 0.6797 GB, free: 12.93 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.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.0005963/0.4317, allocations: 0.7128 MB / 0.6803 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002261/0.432, allocations: 49.67 kB / 0.6804 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.432, allocations: 0 / 0.6804 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 9.395e-05/0.4321, allocations: 22.38 kB / 0.6804 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.4324, allocations: 6.156 kB / 0.6804 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004428/0.4328, allocations: 155.2 kB / 0.6806 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.4331, allocations: 0.6785 MB / 0.6812 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.407e-05/0.4331, allocations: 7.641 kB / 0.6812 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.4331, allocations: 8.812 kB / 0.6812 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of SimCode: time 2e-07/0.4332, allocations: 0 / 0.6812 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.4509, allocations: 1.607 MB / 0.6828 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.436/7.887, allocations: 7.516 kB / 0.6828 GB, free: 10.42 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)