Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.764/2.764, allocations: 287.3 MB / 302.3 MB, free: 8.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002211/0.002211, allocations: 196.2 kB / 370.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.197/2.197, allocations: 205.4 MB / 0.6295 GB, free: 10.66 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001214/0.001214, allocations: 85.11 kB / 0.7428 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005384/0.0005201, allocations: 15.97 kB / 0.8657 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2399, allocations: 115.3 MB / 0.9783 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.038/1.278, allocations: 138.1 MB / 1.113 GB, free: 15.32 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/1.278, allocations: 71.81 kB / 1.113 GB, free: 15.32 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00417/1.282, allocations: 0.9345 MB / 1.114 GB, free: 30.98 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.235e-06/1.282, allocations: 2.078 kB / 1.114 GB, free: 30.98 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.238e-06/1.282, allocations: 0 / 1.114 GB, free: 30.98 MB / 0.698 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.0005306/1.283, allocations: 352 kB / 1.114 GB, free: 30.62 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/1.283, allocations: 15.67 kB / 1.114 GB, free: 30.62 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.432e-05/1.283, allocations: 33.44 kB / 1.114 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/1.283, allocations: 6.203 kB / 1.114 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/1.283, allocations: 176.1 kB / 1.115 GB, free: 30.37 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/1.283, allocations: 0 / 1.115 GB, free: 30.37 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/1.283, allocations: 0 / 1.115 GB, free: 30.37 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002587/1.283, allocations: 64.62 kB / 1.115 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/1.283, allocations: 7.844 kB / 1.115 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/1.283, allocations: 3.312 kB / 1.115 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/1.284, allocations: 0 / 1.115 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003051/1.284, allocations: 46.33 kB / 1.115 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005803/1.284, allocations: 285.1 kB / 1.115 GB, free: 30.07 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004662/1.285, allocations: 65.59 kB / 1.115 GB, free: 30.04 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001536/1.285, allocations: 87.92 kB / 1.115 GB, free: 29.94 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/1.285, allocations: 30.56 kB / 1.115 GB, free: 29.9 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.764e-06/1.285, allocations: 0 / 1.115 GB, free: 29.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0005851/1.286, allocations: 116 kB / 1.115 GB, free: 29.86 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/1.286, allocations: 58.11 kB / 1.115 GB, free: 29.79 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.817e-05/1.286, allocations: 88.81 kB / 1.115 GB, free: 29.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/1.286, allocations: 33.14 kB / 1.116 GB, free: 29.67 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.976e-05/1.286, allocations: 82.95 kB / 1.116 GB, free: 29.59 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/1.286, allocations: 3.906 kB / 1.116 GB, free: 29.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/1.286, allocations: 0 / 1.116 GB, free: 29.59 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001489/1.286, allocations: 330.5 kB / 1.116 GB, free: 29.26 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/1.286, allocations: 20.92 kB / 1.116 GB, free: 29.26 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/1.286, allocations: 24.97 kB / 1.116 GB, free: 29.26 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/1.287, allocations: 28.38 kB / 1.116 GB, free: 29.26 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.287, allocations: 0 / 1.116 GB, free: 29.26 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003678/1.287, allocations: 82.27 kB / 1.116 GB, free: 29.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/1.287, allocations: 3.844 kB / 1.116 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.287, allocations: 3.938 kB / 1.116 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/1.287, allocations: 7.969 kB / 1.116 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/1.287, allocations: 13.25 kB / 1.116 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/1.287, allocations: 0 / 1.116 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.982e-05/1.287, allocations: 10.75 kB / 1.116 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/1.287, allocations: 0 / 1.116 GB, free: 29.22 MB / 0.698 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 (fac.y,fac.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001107/1.288, allocations: 121.4 kB / 1.116 GB, free: 29.1 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.242e-05/1.288, allocations: 7.906 kB / 1.116 GB, free: 29.09 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004128/1.288, allocations: 88.94 kB / 1.116 GB, free: 29.06 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/1.288, allocations: 1.359 kB / 1.116 GB, free: 29.06 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/1.288, allocations: 48 / 1.116 GB, free: 29.06 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/1.288, allocations: 3.984 kB / 1.116 GB, free: 29.05 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/1.288, allocations: 173.2 kB / 1.116 GB, free: 28.86 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/1.288, allocations: 9.375 kB / 1.116 GB, free: 28.86 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/1.288, allocations: 17.98 kB / 1.116 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/1.288, allocations: 0 / 1.116 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/1.288, allocations: 1.547 kB / 1.117 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/1.288, allocations: 0 / 1.117 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.288, allocations: 0 / 1.117 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004159/1.289, allocations: 184.3 kB / 1.117 GB, free: 28.71 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.256e-05/1.289, allocations: 78.38 kB / 1.117 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/1.289, allocations: 0 / 1.117 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/1.289, allocations: 14.25 kB / 1.117 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/1.289, allocations: 10.78 kB / 1.117 GB, free: 28.62 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/1.289, allocations: 0 / 1.117 GB, free: 28.62 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.943e-05/1.289, allocations: 84.09 kB / 1.117 GB, free: 28.54 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.11e-07/1.289, allocations: 0 / 1.117 GB, free: 28.54 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003026/1.29, allocations: 13.03 kB / 1.117 GB, free: 28.54 MB / 0.698 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,fac.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008565/1.29, allocations: 0.7313 MB / 1.118 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000378/1.291, allocations: 57.3 kB / 1.118 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.291, allocations: 0 / 1.118 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001726/1.291, allocations: 32.36 kB / 1.118 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/1.291, allocations: 11.98 kB / 1.118 GB, free: 27.85 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005814/1.292, allocations: 151.9 kB / 1.118 GB, free: 27.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/1.292, allocations: 0.6809 MB / 1.118 GB, free: 27 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.814e-05/1.292, allocations: 1.172 kB / 1.118 GB, free: 27 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/1.293, allocations: 15.89 kB / 1.119 GB, free: 27 MB / 0.698 GB Notification: Performance of SimCode: time 1.343e-06/1.293, allocations: 0 / 1.119 GB, free: 27 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/1.313, allocations: 1.261 MB / 1.12 GB, free: 26.83 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002854/1.314, allocations: 186.9 kB / 1.12 GB, free: 26.58 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.41/3.724, allocations: 0 / 1.12 GB, free: 26.58 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)