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-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.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.006267/0.006267, allocations: 99.09 kB / 15.73 MB, free: 6.441 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.001609/0.001609, allocations: 196.4 kB / 16.67 MB, free: 6.352 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.07/1.07, allocations: 143.3 MB / 433.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 59.91 kB / 0.5953 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4623/0.4642, allocations: 82.02 MB / 0.6754 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.002901/0.4671, allocations: 1.506 MB / 0.6769 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.000383/0.4675, allocations: 125.8 kB / 0.677 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.875e-05/0.4676, allocations: 1.281 kB / 0.677 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.4676, allocations: 3.938 kB / 0.677 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.279e-05/0.4677, allocations: 7.922 kB / 0.677 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.4679, allocations: 22.84 kB / 0.677 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.597e-05/0.468, allocations: 31.73 kB / 0.6771 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 9.303e-05/0.4681, allocations: 12.44 kB / 0.6771 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.466e-05/0.4682, allocations: 12.45 kB / 0.6771 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.329e-05/0.4682, allocations: 20.44 kB / 0.6771 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.4682, allocations: 3.469 kB / 0.6771 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.261e-05/0.4683, allocations: 14.31 kB / 0.6771 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.684e-05/0.4683, allocations: 9.109 kB / 0.6771 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.831e-05/0.4684, allocations: 11.84 kB / 0.6772 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.4685, allocations: 37.48 kB / 0.6772 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.4685, allocations: 0 / 0.6772 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4685, allocations: 3.938 kB / 0.6772 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.251e-06/0.4685, allocations: 5.25 kB / 0.6772 GB, free: 15.57 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.0005069/0.469, allocations: 349.7 kB / 0.6775 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.4691, allocations: 9.469 kB / 0.6775 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.116e-05/0.4691, allocations: 31.91 kB / 0.6776 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.4692, allocations: 2.281 kB / 0.6776 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.4693, allocations: 174.8 kB / 0.6777 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.4693, allocations: 1 kB / 0.6777 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.4693, allocations: 6.344 kB / 0.6777 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.4695, allocations: 57.92 kB / 0.6778 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.4696, allocations: 3.938 kB / 0.6778 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.4696, allocations: 0 / 0.6778 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.4696, allocations: 1.156 kB / 0.6778 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.4698, allocations: 45.95 kB / 0.6778 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004451/0.4702, allocations: 265.5 kB / 0.6781 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.4706, allocations: 62.59 kB / 0.6782 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.4707, allocations: 23.47 kB / 0.6782 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.4708, allocations: 80.89 kB / 0.6783 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.4709, allocations: 39.61 kB / 0.6783 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.4709, allocations: 0 / 0.6783 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0004014/0.4713, allocations: 93.39 kB / 0.6784 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.4714, allocations: 52.47 kB / 0.6784 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.28e-05/0.4714, allocations: 107.2 kB / 0.6785 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.4715, allocations: 25.7 kB / 0.6786 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.982e-05/0.4715, allocations: 81.2 kB / 0.6786 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.4715, allocations: 5.016 kB / 0.6786 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-05/0.4716, allocations: 21.95 kB / 0.6787 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.4718, allocations: 315.9 kB / 0.679 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-05/0.4719, allocations: 18.14 kB / 0.679 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.154e-05/0.472, allocations: 23 kB / 0.679 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.4721, allocations: 50.41 kB / 0.6791 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4721, allocations: 0 / 0.6791 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002244/0.4724, allocations: 76.69 kB / 0.6791 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.4724, allocations: 5.281 kB / 0.6791 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.4724, allocations: 3.938 kB / 0.6791 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.4724, allocations: 1.859 kB / 0.6791 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.166e-05/0.4725, allocations: 10.73 kB / 0.6792 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.4725, allocations: 1.281 kB / 0.6792 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.545e-05/0.4726, allocations: 8.109 kB / 0.6792 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.4726, allocations: 0 / 0.6792 GB, free: 13.56 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 0.0001003/0.4727, allocations: 120.5 kB / 0.6793 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.4727, allocations: 9.203 kB / 0.6793 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.473, allocations: 82.75 kB / 0.6794 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.473, allocations: 0 / 0.6794 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4731, allocations: 5.281 kB / 0.6794 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.4731, allocations: 4 kB / 0.6794 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000216/0.4733, allocations: 168.3 kB / 0.6795 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4733, allocations: 4 kB / 0.6795 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.802e-05/0.4734, allocations: 11.33 kB / 0.6795 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4734, allocations: 0 / 0.6795 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.4734, allocations: 0.9375 kB / 0.6795 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4734, allocations: 1.125 kB / 0.6795 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4734, allocations: 0 / 0.6795 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002914/0.4737, allocations: 178.7 kB / 0.6797 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.4738, allocations: 78.27 kB / 0.6798 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.4738, allocations: 1.156 kB / 0.6798 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.4739, allocations: 7.422 kB / 0.6798 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.964e-05/0.474, allocations: 6.25 kB / 0.6798 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.474, allocations: 1.125 kB / 0.6798 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.796e-05/0.474, allocations: 86.58 kB / 0.6799 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.474, allocations: 1.156 kB / 0.6799 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002242/0.4743, allocations: 11 kB / 0.6799 GB, free: 12.79 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.0006946/0.475, allocations: 0.7133 MB / 0.6806 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002509/0.4752, allocations: 44.23 kB / 0.6806 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4753, allocations: 5 kB / 0.6806 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.4754, allocations: 25.91 kB / 0.6807 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.4757, allocations: 3.156 kB / 0.6807 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004642/0.4762, allocations: 148.4 kB / 0.6808 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.4765, allocations: 0.6775 MB / 0.6815 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.347e-05/0.4765, allocations: 6.688 kB / 0.6815 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.436e-05/0.4766, allocations: 18.39 kB / 0.6815 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.4766, allocations: 0 / 0.6815 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.4994, allocations: 1.601 MB / 0.6831 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.56, allocations: 2.531 kB / 0.6831 GB, free: 10.28 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)