Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.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.001854/0.001854, 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.002545/0.002545, allocations: 219.6 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.56/1.56, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.924/2.924, allocations: 476.8 MB / 0.7715 GB, free: 3.824 MB / 0.6231 GB " [Timeout remaining time 176] 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.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_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.002042/0.002042, allocations: 65.97 kB / 1.118 GB, free: 39.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3536, allocations: 170 MB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003057/0.3567, allocations: 1.542 MB / 1.286 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0004177/0.3571, allocations: 123.7 kB / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.831e-05/0.3571, allocations: 0 / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.034e-05/0.3572, allocations: 3.938 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.47e-05/0.3572, allocations: 0 / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.3575, allocations: 27.91 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.633e-05/0.3576, allocations: 31.92 kB / 1.286 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.889e-05/0.3577, allocations: 3.984 kB / 1.286 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.683e-05/0.3577, allocations: 15.94 kB / 1.286 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.666e-05/0.3578, allocations: 19.91 kB / 1.286 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.3578, allocations: 4 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.145e-05/0.3579, allocations: 15.98 kB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.692e-05/0.3579, allocations: 8 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.779e-05/0.3579, allocations: 11.92 kB / 1.286 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.358, allocations: 39.41 kB / 1.286 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.358, allocations: 0 / 1.286 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.262e-06/0.358, allocations: 0 / 1.286 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.3581, allocations: 0 / 1.286 GB, free: 8.727 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004724/0.3585, allocations: 268.7 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3586, allocations: 12.02 kB / 1.286 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.692e-05/0.3586, allocations: 8.188 kB / 1.286 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.696e-05/0.3586, allocations: 30.75 kB / 1.286 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.3587, allocations: 4.938 kB / 1.286 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.3588, allocations: 114.4 kB / 1.286 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.3588, allocations: 384 / 1.286 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.3588, allocations: 8.359 kB / 1.286 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.359, allocations: 61.97 kB / 1.286 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.359, allocations: 0 / 1.286 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.359, allocations: 4 kB / 1.286 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.359, allocations: 0 / 1.286 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.3592, allocations: 43.95 kB / 1.286 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003859/0.3596, allocations: 228 kB / 1.287 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.36, allocations: 62.53 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.718e-05/0.3601, allocations: 16.84 kB / 1.287 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.473e-05/0.3602, allocations: 11.98 kB / 1.287 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.3602, allocations: 34.56 kB / 1.287 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3602, allocations: 0 / 1.287 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004043/0.3606, allocations: 93.58 kB / 1.287 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.3606, allocations: 55.34 kB / 1.287 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.962e-05/0.3607, allocations: 101.8 kB / 1.287 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.3607, allocations: 25.7 kB / 1.287 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/0.3608, allocations: 96.03 kB / 1.287 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.483e-05/0.3608, allocations: 3.953 kB / 1.287 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-05/0.3609, allocations: 17.7 kB / 1.287 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.361, allocations: 318.8 kB / 1.287 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.84e-05/0.3611, allocations: 27.97 kB / 1.287 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.145e-05/0.3612, allocations: 15.98 kB / 1.287 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.3614, allocations: 44.81 kB / 1.288 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3614, allocations: 0 / 1.288 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002219/0.3616, allocations: 81.59 kB / 1.288 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.3616, allocations: 4 kB / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3616, allocations: 0 / 1.288 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3616, allocations: 4 kB / 1.288 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.74e-05/0.3617, allocations: 11.98 kB / 1.288 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.84e-06/0.3617, allocations: 0 / 1.288 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.138e-05/0.3618, allocations: 11.92 kB / 1.288 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.3618, allocations: 4 kB / 1.288 GB, free: 6.742 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 (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 9.726e-05/0.3619, allocations: 115.1 kB / 1.288 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.3619, allocations: 4.516 kB / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002691/0.3622, allocations: 89.25 kB / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3622, allocations: 0 / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3622, allocations: 0 / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.3622, allocations: 0 / 1.288 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.3624, allocations: 136.6 kB / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3624, allocations: 0 / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.886e-05/0.3624, allocations: 11.98 kB / 1.288 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3624, allocations: 0 / 1.288 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.3624, allocations: 0 / 1.288 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.3625, allocations: 4 kB / 1.288 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3625, allocations: 3.984 kB / 1.288 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.3628, allocations: 175.5 kB / 1.288 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-06/0.3628, allocations: 0 / 1.288 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.3628, allocations: 0 / 1.288 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.768e-05/0.3629, allocations: 7.984 kB / 1.288 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.3629, allocations: 15.92 kB / 1.288 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.3629, allocations: 0 / 1.288 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.507e-05/0.363, allocations: 79.28 kB / 1.288 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.363, allocations: 3.938 kB / 1.288 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002349/0.3632, allocations: 8 kB / 1.288 GB, free: 6.027 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.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.0006395/0.3639, allocations: 0.718 MB / 1.289 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.3641, allocations: 43.89 kB / 1.289 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3641, allocations: 0 / 1.289 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.3642, allocations: 27.97 kB / 1.289 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.3645, allocations: 8 kB / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004806/0.365, allocations: 151.1 kB / 1.289 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.606e-05/0.3651, allocations: 67.33 kB / 1.289 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.125e-05/0.3651, allocations: 4 kB / 1.289 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.3651, allocations: 15.44 kB / 1.289 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.3651, allocations: 0 / 1.289 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.389, allocations: 1.773 MB / 1.291 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.81, allocations: 7.625 kB / 1.291 GB, free: 3.273 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 19.01004938397091] Failed to read output from testmodel.py, exit status != 0: 12.668687875964679 11.991989096 11.630718019 Calling exit ...