Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001604/0.001604, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001964/0.001964, allocations: 217 kB / 23.04 MB, free: 5.074 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.533/1.533, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.337/3.337, allocations: 0.5003 GB / 0.8061 GB, free: 26.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_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.001982/0.001982, allocations: 61.72 kB / 1.171 GB, free: 19.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3903, allocations: 179 MB / 1.345 GB, free: 424 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001767/0.392, allocations: 0.5915 MB / 1.346 GB, free: 15.82 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002598/0.3923, allocations: 52.09 kB / 1.346 GB, free: 15.77 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.477e-05/0.3923, allocations: 0 / 1.346 GB, free: 15.77 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.288e-05/0.3923, allocations: 0 / 1.346 GB, free: 15.77 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.721e-06/0.3923, allocations: 0 / 1.346 GB, free: 15.77 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.3925, allocations: 12 kB / 1.346 GB, free: 15.76 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 4.343e-05/0.3926, allocations: 7.984 kB / 1.346 GB, free: 15.75 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.99e-05/0.3926, allocations: 0 / 1.346 GB, free: 15.75 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.224e-05/0.3926, allocations: 0 / 1.346 GB, free: 15.75 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.317e-05/0.3926, allocations: 7.984 kB / 1.346 GB, free: 15.74 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.325e-06/0.3926, allocations: 4 kB / 1.346 GB, free: 15.74 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.163e-05/0.3927, allocations: 11.98 kB / 1.346 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.975e-06/0.3927, allocations: 0 / 1.346 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.793e-05/0.3927, allocations: 3.938 kB / 1.346 GB, free: 15.72 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 7.946e-05/0.3928, allocations: 8 kB / 1.346 GB, free: 15.71 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3928, allocations: 3.938 kB / 1.346 GB, free: 15.71 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3928, allocations: 3.938 kB / 1.346 GB, free: 15.71 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.3928, allocations: 0 / 1.346 GB, free: 15.71 MB / 1.045 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.0002827/0.3931, allocations: 246.7 kB / 1.346 GB, free: 15.43 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3932, allocations: 8.031 kB / 1.346 GB, free: 15.43 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.757e-05/0.3932, allocations: 12.19 kB / 1.346 GB, free: 15.41 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.587e-05/0.3932, allocations: 30.75 kB / 1.346 GB, free: 15.38 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.3932, allocations: 8.891 kB / 1.346 GB, free: 15.37 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.837e-05/0.3933, allocations: 102.5 kB / 1.346 GB, free: 15.24 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.3933, allocations: 384 / 1.346 GB, free: 15.24 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-06/0.3933, allocations: 384 / 1.346 GB, free: 15.24 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.361e-05/0.3934, allocations: 38 kB / 1.346 GB, free: 15.2 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3934, allocations: 0 / 1.346 GB, free: 15.2 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.3934, allocations: 0 / 1.346 GB, free: 15.2 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3934, allocations: 4 kB / 1.346 GB, free: 15.2 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.654e-05/0.3935, allocations: 11.94 kB / 1.346 GB, free: 15.18 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.3936, allocations: 120.8 kB / 1.347 GB, free: 15.02 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.034e-05/0.3937, allocations: 22.61 kB / 1.347 GB, free: 14.99 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.781e-05/0.3937, allocations: 4.859 kB / 1.347 GB, free: 14.98 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.3938, allocations: 12.03 kB / 1.347 GB, free: 14.97 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/0.3939, allocations: 46.44 kB / 1.347 GB, free: 14.92 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3939, allocations: 0 / 1.347 GB, free: 14.92 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0001381/0.394, allocations: 41.64 kB / 1.347 GB, free: 14.87 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.3941, allocations: 51.41 kB / 1.347 GB, free: 14.81 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.605e-05/0.3941, allocations: 89.86 kB / 1.347 GB, free: 14.71 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.3941, allocations: 29.69 kB / 1.347 GB, free: 14.68 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.167e-05/0.3942, allocations: 80.14 kB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.3942, allocations: 8 kB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.594e-05/0.3942, allocations: 13.84 kB / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3944, allocations: 310.8 kB / 1.347 GB, free: 14.25 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.486e-05/0.3944, allocations: 4 kB / 1.347 GB, free: 14.25 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.133e-06/0.3944, allocations: 0 / 1.347 GB, free: 14.25 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.807e-05/0.3945, allocations: 20.84 kB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3945, allocations: 0 / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.543e-05/0.3945, allocations: 41.64 kB / 1.347 GB, free: 14.18 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3946, allocations: 7.938 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.3946, allocations: 4.094 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3946, allocations: 0 / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.415e-05/0.3946, allocations: 4 kB / 1.347 GB, free: 14.16 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.3946, allocations: 0 / 1.347 GB, free: 14.16 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.521e-05/0.3946, allocations: 3.984 kB / 1.347 GB, free: 14.16 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.3946, allocations: 0 / 1.347 GB, free: 14.16 MB / 1.045 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 7.444e-05/0.3947, allocations: 109.8 kB / 1.347 GB, free: 14.04 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.3947, allocations: 11.83 kB / 1.347 GB, free: 14.03 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.3948, allocations: 52.78 kB / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3948, allocations: 0 / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3948, allocations: 0 / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.3948, allocations: 0 / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.395, allocations: 116.8 kB / 1.348 GB, free: 13.81 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.395, allocations: 0 / 1.348 GB, free: 13.81 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.204e-05/0.395, allocations: 15.98 kB / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.395, allocations: 3.938 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.395, allocations: 0 / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.395, allocations: 0 / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.395, allocations: 0 / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.966e-05/0.3951, allocations: 61.17 kB / 1.348 GB, free: 13.71 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.596e-06/0.3951, allocations: 11.92 kB / 1.348 GB, free: 13.7 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.3951, allocations: 3.938 kB / 1.348 GB, free: 13.7 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.3951, allocations: 0 / 1.348 GB, free: 13.7 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.208e-05/0.3951, allocations: 7.922 kB / 1.348 GB, free: 13.69 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.3952, allocations: 4 kB / 1.348 GB, free: 13.69 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.391e-05/0.3952, allocations: 75.28 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3952, allocations: 4.031 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001952/0.3954, allocations: 7.938 kB / 1.348 GB, free: 13.6 MB / 1.045 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.0004923/0.3959, allocations: 0.6007 MB / 1.348 GB, free: 12.97 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 8.021e-05/0.396, allocations: 15.97 kB / 1.348 GB, free: 12.95 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.396, allocations: 0 / 1.348 GB, free: 12.95 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.557e-05/0.396, allocations: 4 kB / 1.348 GB, free: 12.95 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.3961, allocations: 1.375 kB / 1.348 GB, free: 12.95 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003306/0.3964, allocations: 118.6 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.3968, allocations: 0.6729 MB / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 1.203e-05/0.3968, allocations: 0 / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.923e-05/0.3968, allocations: 7.438 kB / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of SimCode: time 3.31e-07/0.3968, allocations: 4 kB / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02132/0.4181, allocations: 1.201 MB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.71, allocations: 17.25 kB / 1.35 GB, free: 11.02 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.845168329018634] Failed to read output from testmodel.py, exit status != 0: 11.873625200008973 11.90112388 11.503187004 Calling exit ...