Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 219.1 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.77/2.77, allocations: 476.8 MB / 0.7715 GB, free: 3.863 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 63.11 kB / 1.118 GB, free: 39.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3139, allocations: 170 MB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002598/0.3165, allocations: 0.5915 MB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003401/0.3168, allocations: 47.8 kB / 1.285 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.04e-05/0.3168, allocations: 0 / 1.285 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.462e-05/0.3168, allocations: 0 / 1.285 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.183e-06/0.3168, allocations: 4 kB / 1.285 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.3172, allocations: 15.92 kB / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.658e-05/0.3172, allocations: 0 / 1.285 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.688e-05/0.3173, allocations: 4 kB / 1.285 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.318e-05/0.3173, allocations: 3.938 kB / 1.285 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.533e-05/0.3173, allocations: 3.984 kB / 1.285 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.3173, allocations: 0 / 1.285 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.3174, allocations: 19.98 kB / 1.285 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.3174, allocations: 0 / 1.285 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.23e-05/0.3175, allocations: 3.938 kB / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.3176, allocations: 13.39 kB / 1.285 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3176, allocations: 4 kB / 1.285 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.983e-06/0.3176, allocations: 0 / 1.285 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.3176, allocations: 0 / 1.285 GB, free: 9.902 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003747/0.318, allocations: 240.2 kB / 1.285 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.318, allocations: 12.03 kB / 1.285 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.034e-05/0.318, allocations: 192 / 1.285 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.625e-05/0.3181, allocations: 30.75 kB / 1.285 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.151e-05/0.3181, allocations: 0.9375 kB / 1.285 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.3182, allocations: 110.5 kB / 1.285 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.3182, allocations: 384 / 1.285 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.3182, allocations: 384 / 1.285 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.3184, allocations: 45.95 kB / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.3184, allocations: 0 / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.3184, allocations: 0 / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3184, allocations: 0 / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.888e-05/0.3184, allocations: 7.984 kB / 1.285 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000178/0.3186, allocations: 116.8 kB / 1.285 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.695e-05/0.3187, allocations: 22.77 kB / 1.285 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.75e-05/0.3187, allocations: 12.86 kB / 1.285 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001685/0.3189, allocations: 7.984 kB / 1.285 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.3189, allocations: 42.5 kB / 1.285 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.352e-06/0.3189, allocations: 0 / 1.285 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001999/0.3191, allocations: 37.7 kB / 1.285 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3192, allocations: 55.39 kB / 1.286 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.902e-05/0.3192, allocations: 93.8 kB / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.3193, allocations: 33.7 kB / 1.286 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.3193, allocations: 80.14 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.3193, allocations: 7.938 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.814e-05/0.3194, allocations: 13.72 kB / 1.286 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3195, allocations: 310.8 kB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.303e-05/0.3195, allocations: 128 / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.342e-05/0.3195, allocations: 15.94 kB / 1.286 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.739e-05/0.3196, allocations: 12.84 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3196, allocations: 0 / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.401e-05/0.3196, allocations: 37.7 kB / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.3197, allocations: 15.88 kB / 1.286 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3197, allocations: 0 / 1.286 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3197, allocations: 0 / 1.286 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.857e-05/0.3198, allocations: 7.984 kB / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3198, allocations: 0 / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.057e-05/0.3198, allocations: 8.094 kB / 1.286 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.3198, allocations: 0 / 1.286 GB, free: 8.359 MB / 0.9825 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.239e-05/0.3199, allocations: 109.8 kB / 1.286 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.3199, allocations: 7.938 kB / 1.286 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.32, allocations: 44.84 kB / 1.286 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.32, allocations: 0 / 1.286 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.32, allocations: 0 / 1.286 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.32, allocations: 0 / 1.286 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.3201, allocations: 120.8 kB / 1.286 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3201, allocations: 0 / 1.286 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.792e-05/0.3201, allocations: 8.016 kB / 1.286 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/0.3202, allocations: 7.938 kB / 1.286 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.3202, allocations: 0 / 1.286 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3202, allocations: 0 / 1.286 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3202, allocations: 0 / 1.286 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.364e-05/0.3203, allocations: 65.06 kB / 1.286 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-06/0.3203, allocations: 4 kB / 1.286 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.3203, allocations: 3.938 kB / 1.286 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.207e-05/0.3203, allocations: 0 / 1.286 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.309e-05/0.3203, allocations: 0 / 1.286 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.3203, allocations: 11.97 kB / 1.287 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.859e-05/0.3204, allocations: 75.28 kB / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3204, allocations: 0 / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002389/0.3206, allocations: 7.938 kB / 1.287 GB, free: 7.828 MB / 0.9825 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005173/0.3211, allocations: 0.6085 MB / 1.287 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 8.761e-05/0.3212, allocations: 8 kB / 1.287 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3212, allocations: 0 / 1.287 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.094e-05/0.3212, allocations: 4 kB / 1.287 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.3214, allocations: 12.09 kB / 1.287 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003838/0.3218, allocations: 110.6 kB / 1.287 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.889e-05/0.3218, allocations: 55.36 kB / 1.287 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.784e-05/0.3218, allocations: 3.938 kB / 1.287 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.3219, allocations: 19.42 kB / 1.287 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3219, allocations: 0 / 1.287 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.3428, allocations: 1.225 MB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.6, allocations: 10.11 kB / 1.289 GB, free: 5.832 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.171436300035566] Failed to read output from testmodel.py, exit status != 0: 12.30807902093511 11.780722433 11.460159094 Calling exit ...