Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.306/1.306, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008741/0.0008741, allocations: 165.4 kB / 325.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.726/1.726, allocations: 205 MB / 0.576 GB, free: 20.97 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007755/0.0007756, allocations: 85.94 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003557, allocations: 12.91 kB / 0.7932 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.234, allocations: 105.4 MB / 0.8962 GB, free: 68.11 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002024/0.236, allocations: 1.259 MB / 0.8974 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003439/0.2364, allocations: 133.2 kB / 0.8975 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.867e-05/0.2365, allocations: 0 / 0.8975 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.355e-05/0.2365, allocations: 0 / 0.8975 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.632e-05/0.2366, allocations: 0 / 0.8975 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.2368, allocations: 23.92 kB / 0.8976 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.502e-05/0.2368, allocations: 23.98 kB / 0.8976 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.921e-05/0.2369, allocations: 7.938 kB / 0.8976 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.867e-05/0.237, allocations: 23.97 kB / 0.8976 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.264e-05/0.237, allocations: 11.92 kB / 0.8976 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.237, allocations: 0 / 0.8976 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.535e-05/0.2371, allocations: 8 kB / 0.8976 GB, free: 66.6 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.428e-05/0.2371, allocations: 11.92 kB / 0.8977 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.2372, allocations: 7.938 kB / 0.8977 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.2373, allocations: 27.94 kB / 0.8977 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2373, allocations: 0 / 0.8977 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.536e-06/0.2373, allocations: 7.938 kB / 0.8977 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.77e-06/0.2373, allocations: 0 / 0.8977 GB, free: 66.55 MB / 0.6042 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.0003769/0.2377, allocations: 339.6 kB / 0.898 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.2377, allocations: 8.031 kB / 0.898 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.987e-05/0.2378, allocations: 38.75 kB / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.396e-05/0.2378, allocations: 4.844 kB / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.772e-05/0.2379, allocations: 176.3 kB / 0.8982 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.2379, allocations: 4.375 kB / 0.8982 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.704e-06/0.2379, allocations: 384 / 0.8982 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001608/0.2381, allocations: 62.23 kB / 0.8983 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2381, allocations: 7.875 kB / 0.8983 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.2381, allocations: 4 kB / 0.8983 GB, free: 65.81 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.2381, allocations: 4 kB / 0.8983 GB, free: 65.81 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.2383, allocations: 47.95 kB / 0.8984 GB, free: 65.76 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003054/0.2386, allocations: 268.9 kB / 0.8986 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002714/0.2389, allocations: 54.55 kB / 0.8987 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.893e-05/0.239, allocations: 40.83 kB / 0.8987 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.005e-05/0.2391, allocations: 81.11 kB / 0.8988 GB, free: 65.25 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.2391, allocations: 34.56 kB / 0.8988 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.2391, allocations: 0 / 0.8988 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003509/0.2395, allocations: 113.5 kB / 0.8989 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.098e-05/0.2395, allocations: 51.41 kB / 0.899 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.546e-05/0.2396, allocations: 101.8 kB / 0.8991 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.2396, allocations: 25.7 kB / 0.8991 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.2396, allocations: 88.14 kB / 0.8992 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.39e-05/0.2396, allocations: 7.906 kB / 0.8992 GB, free: 64.79 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.027e-05/0.2396, allocations: 13.66 kB / 0.8992 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.74e-05/0.2397, allocations: 322.8 kB / 0.8995 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.2398, allocations: 19.98 kB / 0.8995 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.321e-05/0.2399, allocations: 27.98 kB / 0.8996 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.24, allocations: 56.75 kB / 0.8996 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.24, allocations: 0 / 0.8996 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001849/0.2402, allocations: 90.11 kB / 0.8997 GB, free: 64.24 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2402, allocations: 11.98 kB / 0.8997 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2403, allocations: 0 / 0.8997 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2403, allocations: 0 / 0.8997 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.104e-05/0.2404, allocations: 11.98 kB / 0.8997 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.2404, allocations: 7.938 kB / 0.8997 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.089e-05/0.2404, allocations: 8 kB / 0.8997 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.2404, allocations: 0 / 0.8997 GB, free: 64.2 MB / 0.6042 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 5.887e-05/0.2405, allocations: 117.8 kB / 0.8998 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.2405, allocations: 7.969 kB / 0.8999 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002309/0.2408, allocations: 97.05 kB / 0.8999 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2408, allocations: 0 / 0.8999 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2408, allocations: 0 / 0.8999 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2408, allocations: 0 / 0.8999 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.2409, allocations: 173.6 kB / 0.9001 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2409, allocations: 0 / 0.9001 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.413e-05/0.241, allocations: 12 kB / 0.9001 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.241, allocations: 3.984 kB / 0.9001 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.241, allocations: 8 kB / 0.9001 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.241, allocations: 3.938 kB / 0.9001 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.241, allocations: 0 / 0.9001 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.2413, allocations: 179.5 kB / 0.9003 GB, free: 63.53 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.124e-05/0.2413, allocations: 81.11 kB / 0.9004 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.2413, allocations: 3.984 kB / 0.9004 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.64e-05/0.2414, allocations: 8 kB / 0.9004 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.884e-05/0.2414, allocations: 7.984 kB / 0.9004 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.2414, allocations: 0 / 0.9004 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.136e-05/0.2415, allocations: 79.28 kB / 0.9005 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2415, allocations: 0 / 0.9005 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001962/0.2417, allocations: 16 kB / 0.9005 GB, free: 63.32 MB / 0.6042 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.0004323/0.2421, allocations: 0.7278 MB / 0.9012 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002025/0.2423, allocations: 55.94 kB / 0.9013 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2423, allocations: 0 / 0.9013 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 8.704e-05/0.2424, allocations: 35.92 kB / 0.9013 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.2427, allocations: 11.88 kB / 0.9013 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003867/0.2431, allocations: 141.2 kB / 0.9014 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.2433, allocations: 0.6809 MB / 0.9021 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.031e-05/0.2433, allocations: 4 kB / 0.9021 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.247e-05/0.2433, allocations: 11.44 kB / 0.9021 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of SimCode: time 2.51e-07/0.2433, allocations: 0 / 0.9021 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01025/0.2536, allocations: 1.307 MB / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/0.2538, allocations: 210.7 kB / 0.9036 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/1.878, allocations: 0 / 0.9036 GB, free: 60.11 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)