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.001284/0.001284, allocations: 109.5 kB / 19.73 MB, free: 2.238 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.00143/0.00143, allocations: 216.8 kB / 23.04 MB, free: 5.078 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 8.047 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.88/2.88, allocations: 476.7 MB / 0.7714 GB, free: 4.34 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.00195/0.00195, allocations: 59.69 kB / 1.118 GB, free: 9 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3697, allocations: 169.9 MB / 1.284 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003162/0.3728, allocations: 1.555 MB / 1.286 GB, free: 2.293 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000393/0.3732, allocations: 127.6 kB / 1.286 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.059e-05/0.3733, allocations: 0 / 1.286 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.779e-05/0.3733, allocations: 3.938 kB / 1.286 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.13e-05/0.3733, allocations: 0 / 1.286 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.3736, allocations: 23.92 kB / 1.286 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.405e-05/0.3737, allocations: 31.92 kB / 1.286 GB, free: 2.109 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.3738, allocations: 11.97 kB / 1.286 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.118e-05/0.3738, allocations: 11.94 kB / 1.286 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.87e-05/0.3739, allocations: 23.92 kB / 1.286 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.3739, allocations: 4 kB / 1.286 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.875e-05/0.374, allocations: 15.98 kB / 1.286 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.374, allocations: 0 / 1.286 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.635e-05/0.374, allocations: 19.92 kB / 1.286 GB, free: 2.023 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.3742, allocations: 36.11 kB / 1.286 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3742, allocations: 0 / 1.286 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3742, allocations: 0 / 1.286 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.3742, allocations: 0 / 1.286 GB, free: 1.988 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.0005272/0.3747, allocations: 272 kB / 1.286 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3748, allocations: 12.03 kB / 1.286 GB, free: 1.68 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.821e-05/0.3748, allocations: 192 / 1.286 GB, free: 1.68 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.566e-05/0.3748, allocations: 30.75 kB / 1.286 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.3749, allocations: 0.9375 kB / 1.286 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.375, allocations: 118.4 kB / 1.286 GB, free: 1.5 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.375, allocations: 4.375 kB / 1.286 GB, free: 1.496 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.375, allocations: 4.375 kB / 1.286 GB, free: 1.492 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.3753, allocations: 57.98 kB / 1.286 GB, free: 1.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.3753, allocations: 4 kB / 1.286 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.3753, allocations: 4 kB / 1.286 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.3753, allocations: 0 / 1.286 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.3755, allocations: 35.95 kB / 1.286 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004627/0.3759, allocations: 243.9 kB / 1.287 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003826/0.3763, allocations: 54.55 kB / 1.287 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.3764, allocations: 28.89 kB / 1.287 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.742e-05/0.3765, allocations: 7.984 kB / 1.287 GB, free: 1.004 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.3766, allocations: 34.5 kB / 1.287 GB, free: 0.9609 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.332e-06/0.3766, allocations: 3.938 kB / 1.287 GB, free: 0.957 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004409/0.377, allocations: 101.6 kB / 1.287 GB, free: 0.8516 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.3771, allocations: 55.41 kB / 1.287 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.771e-05/0.3772, allocations: 101.8 kB / 1.287 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.3772, allocations: 25.7 kB / 1.287 GB, free: 0.6445 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.886e-05/0.3772, allocations: 84.09 kB / 1.287 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.3773, allocations: 11.95 kB / 1.287 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/0.3773, allocations: 13.72 kB / 1.287 GB, free: 0.5273 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3775, allocations: 322.8 kB / 1.288 GB, free: 208 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.401e-05/0.3776, allocations: 15.98 kB / 1.288 GB, free: 192 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.3777, allocations: 23.97 kB / 1.288 GB, free: 168 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.3778, allocations: 44.83 kB / 1.288 GB, free: 120 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3778, allocations: 0 / 1.288 GB, free: 120 kB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002309/0.3781, allocations: 77.58 kB / 1.288 GB, free: 36 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.3781, allocations: 10.81 kB / 1.288 GB, free: 28 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.3781, allocations: 0 / 1.288 GB, free: 28 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3781, allocations: 0 / 1.288 GB, free: 28 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.537e-05/0.3782, allocations: 11.98 kB / 1.288 GB, free: 16 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.3782, allocations: 0 / 1.288 GB, free: 16 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.893e-05/0.3782, allocations: 8 kB / 1.288 GB, free: 8 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.3783, allocations: 3.984 kB / 1.288 GB, free: 4 kB / 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 0.0001322/0.3784, allocations: 125.7 kB / 1.288 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.3784, allocations: 0 / 1.288 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002838/0.3787, allocations: 85.27 kB / 1.288 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3787, allocations: 0 / 1.288 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3787, allocations: 4 kB / 1.288 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3787, allocations: 0 / 1.288 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.3789, allocations: 140.6 kB / 1.288 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3789, allocations: 0 / 1.288 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.618e-05/0.379, allocations: 15.98 kB / 1.288 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.379, allocations: 0 / 1.288 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.379, allocations: 4 kB / 1.288 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.379, allocations: 0 / 1.288 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.379, allocations: 0 / 1.288 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.3793, allocations: 179.9 kB / 1.288 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.026e-05/0.3793, allocations: 7.984 kB / 1.288 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.3793, allocations: 4.047 kB / 1.288 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.568e-05/0.3794, allocations: 7.984 kB / 1.288 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.035e-05/0.3795, allocations: 7.984 kB / 1.288 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.3795, allocations: 0 / 1.288 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.86e-05/0.3795, allocations: 87.27 kB / 1.288 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.3795, allocations: 3.938 kB / 1.288 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002322/0.3797, allocations: 8 kB / 1.288 GB, free: 15.26 MB / 0.9981 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.0006906/0.3804, allocations: 0.7085 MB / 1.289 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002462/0.3807, allocations: 47.89 kB / 1.289 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3807, allocations: 0 / 1.289 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.3808, allocations: 23.98 kB / 1.289 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.3811, allocations: 7.984 kB / 1.289 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005495/0.3816, allocations: 148.5 kB / 1.289 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.3821, allocations: 0.6768 MB / 1.29 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.956e-05/0.3821, allocations: 4 kB / 1.29 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.567e-05/0.3822, allocations: 19.42 kB / 1.29 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/0.3822, allocations: 0 / 1.29 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.4053, allocations: 1.727 MB / 1.292 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.48, allocations: 0.5 kB / 1.292 GB, free: 11.95 MB / 0.9981 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: 18.327577794960234] Failed to read output from testmodel.py, exit status != 0: 11.642291701049544 11.666636176999999 11.287714815 Calling exit ...