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.001538/0.001538, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.00167/0.00167, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.6/1.6, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.094/3.094, allocations: 0.5003 GB / 0.8026 GB, free: 6.715 MB / 0.6387 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.002174/0.002174, allocations: 63.91 kB / 1.165 GB, free: 492 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132/1.135, allocations: 179 MB / 1.34 GB, free: 16.24 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00375/1.138, allocations: 1.53 MB / 1.342 GB, free: 15.16 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0005562/1.139, allocations: 135.2 kB / 1.342 GB, free: 15.07 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.847e-05/1.139, allocations: 0.9375 kB / 1.342 GB, free: 15.07 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.593e-05/1.139, allocations: 4.734 kB / 1.342 GB, free: 15.07 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.578e-05/1.139, allocations: 0.9688 kB / 1.342 GB, free: 15.07 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/1.139, allocations: 23.42 kB / 1.342 GB, free: 15.05 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/1.14, allocations: 27.88 kB / 1.342 GB, free: 15.04 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/1.14, allocations: 9.516 kB / 1.342 GB, free: 15.04 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.438e-05/1.14, allocations: 18.61 kB / 1.342 GB, free: 15.03 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/1.14, allocations: 17.36 kB / 1.342 GB, free: 15.02 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/1.14, allocations: 2.219 kB / 1.342 GB, free: 15.02 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.201e-05/1.14, allocations: 16.86 kB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.127e-05/1.14, allocations: 7.375 kB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.792e-05/1.14, allocations: 11.94 kB / 1.342 GB, free: 15 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002106/1.14, allocations: 36.97 kB / 1.342 GB, free: 14.98 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/1.14, allocations: 0 / 1.342 GB, free: 14.98 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.888e-06/1.14, allocations: 0 / 1.342 GB, free: 14.98 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.177e-06/1.14, allocations: 1.469 kB / 1.342 GB, free: 14.98 MB / 1.061 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.0006044/1.141, allocations: 343.5 kB / 1.342 GB, free: 14.62 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/1.141, allocations: 10.03 kB / 1.342 GB, free: 14.62 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.328e-05/1.141, allocations: 5.25 kB / 1.342 GB, free: 14.62 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.811e-05/1.141, allocations: 32.67 kB / 1.342 GB, free: 14.58 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/1.141, allocations: 6.5 kB / 1.342 GB, free: 14.57 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/1.141, allocations: 174.8 kB / 1.342 GB, free: 14.37 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/1.141, allocations: 5.75 kB / 1.342 GB, free: 14.36 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/1.141, allocations: 2.031 kB / 1.342 GB, free: 14.36 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/1.141, allocations: 59.92 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/1.141, allocations: 0 / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/1.141, allocations: 8 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/1.141, allocations: 0.9375 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/1.142, allocations: 38.69 kB / 1.343 GB, free: 14.31 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000474/1.142, allocations: 276.5 kB / 1.343 GB, free: 14.02 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/1.143, allocations: 51.34 kB / 1.343 GB, free: 13.99 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/1.143, allocations: 33.61 kB / 1.343 GB, free: 13.97 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001557/1.143, allocations: 82.06 kB / 1.343 GB, free: 13.88 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/1.143, allocations: 32.34 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/1.143, allocations: 0 / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004803/1.143, allocations: 100.2 kB / 1.343 GB, free: 13.79 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/1.143, allocations: 56.02 kB / 1.343 GB, free: 13.72 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.436e-05/1.143, allocations: 102.4 kB / 1.343 GB, free: 13.62 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/1.143, allocations: 25.7 kB / 1.343 GB, free: 13.59 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.552e-05/1.143, allocations: 82.33 kB / 1.343 GB, free: 13.51 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/1.143, allocations: 10.09 kB / 1.343 GB, free: 13.5 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/1.144, allocations: 14.53 kB / 1.343 GB, free: 13.48 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.466e-05/1.144, allocations: 316.8 kB / 1.344 GB, free: 13.17 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/1.144, allocations: 23.62 kB / 1.344 GB, free: 13.16 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.253e-05/1.144, allocations: 21.41 kB / 1.344 GB, free: 13.16 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/1.144, allocations: 46.59 kB / 1.344 GB, free: 13.14 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.144, allocations: 0 / 1.344 GB, free: 13.14 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002272/1.144, allocations: 72.69 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/1.144, allocations: 6.938 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/1.144, allocations: 4.797 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/1.144, allocations: 1.656 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.792e-05/1.144, allocations: 9.422 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/1.144, allocations: 1.5 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.073e-05/1.144, allocations: 10.02 kB / 1.344 GB, free: 13.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/1.144, allocations: 1.438 kB / 1.344 GB, free: 13.09 MB / 1.061 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 5.987e-05/1.145, allocations: 112.2 kB / 1.344 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/1.145, allocations: 6.188 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/1.145, allocations: 87.19 kB / 1.344 GB, free: 12.92 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/1.145, allocations: 0 / 1.344 GB, free: 12.92 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/1.145, allocations: 1.156 kB / 1.344 GB, free: 12.92 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/1.145, allocations: 0 / 1.344 GB, free: 12.92 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/1.145, allocations: 172.4 kB / 1.344 GB, free: 12.72 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.145, allocations: 0 / 1.344 GB, free: 12.72 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.786e-05/1.145, allocations: 18.69 kB / 1.344 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/1.145, allocations: 1.719 kB / 1.344 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/1.145, allocations: 8.562 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.145, allocations: 0.6562 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/1.145, allocations: 1.406 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/1.145, allocations: 175.3 kB / 1.344 GB, free: 12.56 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/1.145, allocations: 81.86 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/1.145, allocations: 10.08 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.65e-05/1.145, allocations: 9.859 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/1.145, allocations: 5.047 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/1.145, allocations: 1.438 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.587e-05/1.146, allocations: 83.69 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of sort global known variables: time 5e-08/1.146, allocations: 0 / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002361/1.146, allocations: 12.14 kB / 1.345 GB, free: 12.37 MB / 1.061 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.0005166/1.146, allocations: 0.7089 MB / 1.345 GB, free: 11.69 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002859/1.147, allocations: 44.56 kB / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.147, allocations: 0 / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001147/1.147, allocations: 25.02 kB / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/1.147, allocations: 9.344 kB / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005465/1.148, allocations: 149.3 kB / 1.346 GB, free: 11.52 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/1.148, allocations: 0.6772 MB / 1.346 GB, free: 10.82 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.524e-05/1.148, allocations: 3.5 kB / 1.346 GB, free: 10.82 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.031e-05/1.148, allocations: 15.45 kB / 1.346 GB, free: 10.81 MB / 1.061 GB Notification: Performance of SimCode: time 4.01e-07/1.148, allocations: 0 / 1.346 GB, free: 10.81 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/1.169, allocations: 1.628 MB / 1.348 GB, free: 10.4 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/9.465, allocations: 8.188 kB / 1.348 GB, free: 10.4 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.4111380870454] Failed to read output from testmodel.py, exit status != 0: 9.593399631034117 9.611699745 8.46845053 Calling exit ...