Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001321/0.001321, 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.001594/0.001594, allocations: 219 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.575/1.575, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.321/3.321, allocations: 0.5003 GB / 0.8061 GB, free: 26.79 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.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_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.002055/0.002055, allocations: 68.56 kB / 1.171 GB, free: 19.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3944, allocations: 179 MB / 1.345 GB, free: 472 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002683/0.397, allocations: 1.549 MB / 1.347 GB, free: 14.9 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003426/0.3974, allocations: 123.7 kB / 1.347 GB, free: 14.78 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.964e-05/0.3974, allocations: 0 / 1.347 GB, free: 14.78 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.913e-05/0.3974, allocations: 7.938 kB / 1.347 GB, free: 14.77 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 3.675e-05/0.3975, allocations: 3.938 kB / 1.347 GB, free: 14.77 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.3977, allocations: 15.97 kB / 1.347 GB, free: 14.75 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.312e-05/0.3977, allocations: 35.91 kB / 1.347 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 7.866e-05/0.3978, allocations: 4 kB / 1.347 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.223e-05/0.3979, allocations: 19.92 kB / 1.347 GB, free: 14.69 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.022e-05/0.3979, allocations: 15.92 kB / 1.347 GB, free: 14.68 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.3979, allocations: 4 kB / 1.347 GB, free: 14.67 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 5.678e-05/0.398, allocations: 16 kB / 1.347 GB, free: 14.66 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.398, allocations: 11.91 kB / 1.347 GB, free: 14.64 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.452e-05/0.398, allocations: 11.94 kB / 1.347 GB, free: 14.63 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.3981, allocations: 32.12 kB / 1.347 GB, free: 14.6 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3981, allocations: 4 kB / 1.347 GB, free: 14.6 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3981, allocations: 0 / 1.347 GB, free: 14.6 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.198e-06/0.3981, allocations: 0 / 1.347 GB, free: 14.6 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004233/0.3986, allocations: 278.2 kB / 1.347 GB, free: 14.29 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3986, allocations: 12.03 kB / 1.347 GB, free: 14.28 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.113e-05/0.3986, allocations: 192 / 1.347 GB, free: 14.28 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.871e-05/0.3986, allocations: 30.75 kB / 1.347 GB, free: 14.24 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.663e-05/0.3987, allocations: 8.891 kB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.231e-05/0.3988, allocations: 102.5 kB / 1.348 GB, free: 14.11 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.3988, allocations: 8.375 kB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.3988, allocations: 384 / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.399, allocations: 69.97 kB / 1.348 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.399, allocations: 0 / 1.348 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.399, allocations: 0 / 1.348 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.399, allocations: 0 / 1.348 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.3992, allocations: 47.89 kB / 1.348 GB, free: 13.98 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.3995, allocations: 232 kB / 1.348 GB, free: 13.71 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.3999, allocations: 66.47 kB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.805e-05/0.3999, allocations: 24.89 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-05/0.4, allocations: 7.984 kB / 1.348 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.4, allocations: 38.5 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.4, allocations: 0 / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0003766/0.4004, allocations: 101.6 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.4005, allocations: 51.41 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.305e-05/0.4005, allocations: 97.86 kB / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.4006, allocations: 25.7 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.708e-05/0.4006, allocations: 88.12 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.4006, allocations: 3.953 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.4007, allocations: 17.72 kB / 1.348 GB, free: 13.13 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4008, allocations: 318.8 kB / 1.349 GB, free: 12.81 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.858e-05/0.4009, allocations: 23.97 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.188e-05/0.401, allocations: 15.98 kB / 1.349 GB, free: 12.77 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.4011, allocations: 52.75 kB / 1.349 GB, free: 12.72 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4011, allocations: 0 / 1.349 GB, free: 12.72 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002189/0.4014, allocations: 73.66 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.4014, allocations: 4 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.4014, allocations: 0 / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.4014, allocations: 0 / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.937e-05/0.4015, allocations: 11.98 kB / 1.349 GB, free: 12.62 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.4015, allocations: 3.938 kB / 1.349 GB, free: 12.62 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.964e-05/0.4015, allocations: 11.92 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-06/0.4015, allocations: 4 kB / 1.349 GB, free: 12.61 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 (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 8.419e-05/0.4016, allocations: 118.4 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.4017, allocations: 3.953 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002552/0.4019, allocations: 85.27 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4019, allocations: 0 / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.4019, allocations: 0 / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.4019, allocations: 3.984 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.4021, allocations: 136.7 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4021, allocations: 4 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.721e-05/0.4022, allocations: 11.98 kB / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.4022, allocations: 3.938 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.4022, allocations: 0.5625 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4022, allocations: 0 / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.4022, allocations: 7.984 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.4024, allocations: 179.4 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-06/0.4024, allocations: 7.953 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.4025, allocations: 8 kB / 1.349 GB, free: 11.97 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.562e-05/0.4025, allocations: 7.984 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.4026, allocations: 3.984 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.4026, allocations: 0 / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.279e-05/0.4026, allocations: 83.28 kB / 1.35 GB, free: 11.88 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4026, allocations: 0 / 1.35 GB, free: 11.88 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000222/0.4029, allocations: 8 kB / 1.35 GB, free: 11.87 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.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.0005897/0.4034, allocations: 0.7085 MB / 1.35 GB, free: 11.13 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002261/0.4037, allocations: 43.95 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.758e-06/0.4037, allocations: 4 kB / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.4038, allocations: 23.97 kB / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.4041, allocations: 4 kB / 1.35 GB, free: 11.05 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004389/0.4045, allocations: 155 kB / 1.35 GB, free: 10.86 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.4048, allocations: 0.6768 MB / 1.351 GB, free: 10.16 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.996e-05/0.4048, allocations: 8 kB / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.4048, allocations: 11.44 kB / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of SimCode: time 3.01e-07/0.4048, allocations: 0 / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.4273, allocations: 1.743 MB / 1.353 GB, free: 8.543 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.53, allocations: 6 kB / 1.353 GB, free: 8.539 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.69325651001418] Failed to read output from testmodel.py, exit status != 0: 11.692442345025484 11.717139513 11.315350023 Calling exit ...