Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.857/1.857, allocations: 292.6 MB / 307.5 MB, free: 5.164 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.001672/0.001672, allocations: 177 kB / 377.1 MB, free: 1.5 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.939/1.939, allocations: 205.4 MB / 0.6366 GB, free: 8.609 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008638/0.0008643, allocations: 89.56 kB / 0.7509 GB, free: 63.21 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003376, allocations: 8 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3121, allocations: 116.3 MB / 0.9884 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8276/1.14, allocations: 139.2 MB / 1.124 GB, free: 35.4 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/1.14, allocations: 77.25 kB / 1.124 GB, free: 35.34 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.002641/1.143, allocations: 0.9308 MB / 1.125 GB, free: 34.59 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.764e-06/1.143, allocations: 1.047 kB / 1.125 GB, free: 34.59 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.394e-06/1.143, allocations: 0 / 1.125 GB, free: 34.59 MB / 0.7292 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.0004061/1.143, allocations: 355.5 kB / 1.126 GB, free: 34.21 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/1.143, allocations: 19.48 kB / 1.126 GB, free: 34.2 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.276e-05/1.143, allocations: 34.56 kB / 1.126 GB, free: 34.16 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/1.143, allocations: 8.312 kB / 1.126 GB, free: 34.15 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/1.144, allocations: 164.8 kB / 1.126 GB, free: 33.95 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/1.144, allocations: 0 / 1.126 GB, free: 33.95 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/1.144, allocations: 3.438 kB / 1.126 GB, free: 33.95 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/1.144, allocations: 65.34 kB / 1.126 GB, free: 33.89 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/1.144, allocations: 0 / 1.126 GB, free: 33.89 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/1.144, allocations: 0 / 1.126 GB, free: 33.89 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/1.144, allocations: 3.375 kB / 1.126 GB, free: 33.89 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/1.144, allocations: 54.98 kB / 1.126 GB, free: 33.86 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004826/1.145, allocations: 283.7 kB / 1.126 GB, free: 33.55 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/1.145, allocations: 59.25 kB / 1.126 GB, free: 33.49 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001228/1.145, allocations: 92.55 kB / 1.126 GB, free: 33.39 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/1.145, allocations: 34.5 kB / 1.126 GB, free: 33.34 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 3.276e-06/1.145, allocations: 0.5156 kB / 1.126 GB, free: 33.34 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0003986/1.145, allocations: 107.4 kB / 1.127 GB, free: 33.25 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/1.146, allocations: 55.41 kB / 1.127 GB, free: 33.18 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.033e-05/1.146, allocations: 100.4 kB / 1.127 GB, free: 33.08 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/1.146, allocations: 25.7 kB / 1.127 GB, free: 33.05 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.251e-05/1.146, allocations: 80.14 kB / 1.127 GB, free: 32.97 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/1.146, allocations: 7.906 kB / 1.127 GB, free: 32.96 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/1.146, allocations: 4.562 kB / 1.127 GB, free: 32.96 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.867e-05/1.146, allocations: 322.4 kB / 1.127 GB, free: 32.64 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.926e-05/1.146, allocations: 23.52 kB / 1.127 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.814e-05/1.146, allocations: 31.16 kB / 1.127 GB, free: 32.59 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.778e-05/1.146, allocations: 20.31 kB / 1.127 GB, free: 32.58 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/1.146, allocations: 4 kB / 1.127 GB, free: 32.57 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002219/1.146, allocations: 84 kB / 1.127 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/1.146, allocations: 4 kB / 1.127 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/1.146, allocations: 0 / 1.127 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/1.146, allocations: 0 / 1.127 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.793e-05/1.146, allocations: 23.67 kB / 1.127 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/1.146, allocations: 0.7031 kB / 1.127 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.79e-05/1.147, allocations: 4.656 kB / 1.127 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/1.147, allocations: 1.219 kB / 1.127 GB, free: 32.48 MB / 0.7292 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 7.813e-05/1.147, allocations: 121.2 kB / 1.127 GB, free: 32.35 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-05/1.147, allocations: 3.906 kB / 1.127 GB, free: 32.35 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002593/1.147, allocations: 95.55 kB / 1.128 GB, free: 32.26 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/1.147, allocations: 0 / 1.128 GB, free: 32.26 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.147, allocations: 0 / 1.128 GB, free: 32.26 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/1.147, allocations: 8.172 kB / 1.128 GB, free: 32.26 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/1.147, allocations: 165 kB / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.147, allocations: 4 kB / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-05/1.147, allocations: 19.5 kB / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/1.147, allocations: 0.75 kB / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/1.147, allocations: 0 / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/1.147, allocations: 0 / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.147, allocations: 0.6562 kB / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/1.147, allocations: 188.9 kB / 1.128 GB, free: 31.85 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.305e-05/1.148, allocations: 81.77 kB / 1.128 GB, free: 31.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/1.148, allocations: 0.5 kB / 1.128 GB, free: 31.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-05/1.148, allocations: 11.38 kB / 1.128 GB, free: 31.75 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.097e-05/1.148, allocations: 7.375 kB / 1.128 GB, free: 31.74 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/1.148, allocations: 4.812 kB / 1.128 GB, free: 31.74 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.697e-05/1.148, allocations: 84.02 kB / 1.128 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1e-07/1.148, allocations: 0 / 1.128 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002273/1.148, allocations: 19.94 kB / 1.128 GB, free: 31.64 MB / 0.7292 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.0005081/1.148, allocations: 0.7327 MB / 1.129 GB, free: 30.9 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002361/1.149, allocations: 55.95 kB / 1.129 GB, free: 30.86 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/1.149, allocations: 0 / 1.129 GB, free: 30.86 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/1.149, allocations: 30.61 kB / 1.129 GB, free: 30.83 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/1.149, allocations: 4 kB / 1.129 GB, free: 30.83 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000481/1.15, allocations: 154.9 kB / 1.129 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/1.15, allocations: 0.684 MB / 1.13 GB, free: 29.95 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.148e-05/1.15, allocations: 0 / 1.13 GB, free: 29.95 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.606e-05/1.15, allocations: 15.38 kB / 1.13 GB, free: 29.94 MB / 0.7292 GB Notification: Performance of SimCode: time 6.853e-06/1.15, allocations: 0 / 1.13 GB, free: 29.94 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0143/1.164, allocations: 1.255 MB / 1.131 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001441/1.164, allocations: 170.1 kB / 1.131 GB, free: 29.06 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/2.84, allocations: 0 / 1.131 GB, free: 29.06 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)