Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001768/0.001768, allocations: 98.33 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.00235/0.00235, 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.515/1.515, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.38/3.38, allocations: 0.49 GB / 0.7959 GB, free: 33.36 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_12_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.002035/0.002035, allocations: 62.8 kB / 1.155 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.403, allocations: 176.1 MB / 1.327 GB, free: 1.984 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002961/0.406, allocations: 1.554 MB / 1.328 GB, free: 432 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0004011/0.4064, allocations: 123.6 kB / 1.328 GB, free: 308 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.649e-05/0.4064, allocations: 0 / 1.328 GB, free: 308 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.439e-05/0.4064, allocations: 3.938 kB / 1.328 GB, free: 304 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.965e-05/0.4065, allocations: 0 / 1.328 GB, free: 304 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.4067, allocations: 31.91 kB / 1.328 GB, free: 272 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.083e-05/0.4068, allocations: 31.92 kB / 1.328 GB, free: 240 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.4069, allocations: 8 kB / 1.328 GB, free: 232 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.796e-05/0.407, allocations: 19.91 kB / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.476e-05/0.407, allocations: 11.94 kB / 1.328 GB, free: 200 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.407, allocations: 4 kB / 1.328 GB, free: 196 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.4071, allocations: 11.98 kB / 1.328 GB, free: 184 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.4071, allocations: 8 kB / 1.328 GB, free: 176 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.048e-05/0.4072, allocations: 11.92 kB / 1.328 GB, free: 164 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.4073, allocations: 40.11 kB / 1.328 GB, free: 124 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4073, allocations: 0 / 1.328 GB, free: 124 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.122e-06/0.4073, allocations: 0 / 1.328 GB, free: 124 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.4073, allocations: 4 kB / 1.328 GB, free: 120 kB / 1.014 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.0005124/0.4078, allocations: 270.3 kB / 1.329 GB, free: 15.82 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.4078, allocations: 8.031 kB / 1.329 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.752e-05/0.4079, allocations: 4.188 kB / 1.329 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.426e-05/0.4079, allocations: 38.69 kB / 1.329 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.621e-05/0.4079, allocations: 0.9375 kB / 1.329 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.408, allocations: 110.5 kB / 1.329 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.408, allocations: 384 / 1.329 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.4081, allocations: 8.375 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.4083, allocations: 61.97 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.4083, allocations: 0 / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.4083, allocations: 7.875 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.4083, allocations: 4 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.4085, allocations: 39.95 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003778/0.4088, allocations: 239.9 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.4092, allocations: 54.53 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.4093, allocations: 20.91 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-05/0.4094, allocations: 11.98 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.4094, allocations: 30.56 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.001e-06/0.4094, allocations: 4 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003913/0.4098, allocations: 93.56 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.4098, allocations: 51.41 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.008e-05/0.4099, allocations: 105.8 kB / 1.33 GB, free: 14.81 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.4099, allocations: 25.7 kB / 1.33 GB, free: 14.78 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.987e-05/0.41, allocations: 84.14 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.41, allocations: 11.94 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.41, allocations: 13.72 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4101, allocations: 322.8 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.44e-05/0.4102, allocations: 19.97 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.594e-05/0.4103, allocations: 15.98 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.4105, allocations: 53.22 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4105, allocations: 0 / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002192/0.4107, allocations: 81.64 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.4107, allocations: 4 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.4107, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.4108, allocations: 4 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.019e-05/0.4108, allocations: 7.984 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.4108, allocations: 4 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.53e-05/0.4109, allocations: 15.92 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.4109, allocations: 0 / 1.33 GB, free: 14.13 MB / 1.029 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.946e-05/0.411, allocations: 114.3 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.411, allocations: 7.953 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002869/0.4113, allocations: 81.27 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4113, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.4113, allocations: 0 / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.4113, allocations: 7.938 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.4115, allocations: 144.7 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4115, allocations: 0 / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.708e-05/0.4116, allocations: 11.98 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4116, allocations: 0 / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.4116, allocations: 4 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.4116, allocations: 4 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.4116, allocations: 0 / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000273/0.4119, allocations: 183.3 kB / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-06/0.4119, allocations: 0 / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.4119, allocations: 0 / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.629e-05/0.412, allocations: 7.984 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.253e-05/0.412, allocations: 11.98 kB / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.412, allocations: 0 / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.333e-05/0.4121, allocations: 79.28 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4121, allocations: 0 / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002247/0.4123, allocations: 12 kB / 1.331 GB, free: 13.39 MB / 1.029 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.0006241/0.4129, allocations: 0.7046 MB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002423/0.4132, allocations: 51.89 kB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4132, allocations: 0 / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.4133, allocations: 28.39 kB / 1.332 GB, free: 12.58 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.4135, allocations: 4 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004632/0.414, allocations: 151.1 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.4143, allocations: 0.6807 MB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.937e-05/0.4143, allocations: 8 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.4144, allocations: 11.53 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.4144, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.4362, allocations: 1.734 MB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.55, allocations: 14.11 kB / 1.334 GB, free: 10.06 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.66010419902159] Failed to read output from testmodel.py, exit status != 0: 11.714829121017829 11.742560959 11.330072217 Calling exit ...