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.001249/0.001249, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001458/0.001458, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.593/1.593, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.405/3.405, allocations: 0.5003 GB / 0.8062 GB, free: 28.31 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.002011/0.002011, allocations: 62.91 kB / 1.17 GB, free: 19.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3932/0.3952, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003223/0.3985, allocations: 1.542 MB / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0005152/0.399, allocations: 115.7 kB / 1.347 GB, free: 14.28 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.718e-05/0.399, allocations: 0 / 1.347 GB, free: 14.28 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.667e-05/0.3991, allocations: 11.88 kB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.889e-05/0.3991, allocations: 3.938 kB / 1.347 GB, free: 14.26 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003388/0.3995, allocations: 19.97 kB / 1.347 GB, free: 14.24 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000103/0.3996, allocations: 35.84 kB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3997, allocations: 8 kB / 1.347 GB, free: 14.2 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.721e-05/0.3998, allocations: 11.98 kB / 1.347 GB, free: 14.19 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.627e-05/0.3998, allocations: 19.94 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.3998, allocations: 0 / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.472e-05/0.3999, allocations: 15.98 kB / 1.347 GB, free: 14.15 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.847e-05/0.4, allocations: 11.92 kB / 1.347 GB, free: 14.14 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.494e-05/0.4, allocations: 11.98 kB / 1.347 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.4002, allocations: 32.12 kB / 1.347 GB, free: 14.1 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4002, allocations: 0 / 1.347 GB, free: 14.1 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4002, allocations: 0 / 1.347 GB, free: 14.1 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.4002, allocations: 4 kB / 1.347 GB, free: 14.09 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.0005644/0.4007, allocations: 270.3 kB / 1.347 GB, free: 13.8 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.4008, allocations: 15.97 kB / 1.347 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.075e-05/0.4008, allocations: 192 / 1.347 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.99e-05/0.4008, allocations: 38.69 kB / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.211e-05/0.4009, allocations: 8.891 kB / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.401, allocations: 106.5 kB / 1.347 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.401, allocations: 384 / 1.347 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.4011, allocations: 384 / 1.347 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002389/0.4013, allocations: 65.97 kB / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.4013, allocations: 0 / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.4013, allocations: 0 / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.4013, allocations: 8 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.4015, allocations: 39.89 kB / 1.348 GB, free: 13.48 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00048/0.402, allocations: 232 kB / 1.348 GB, free: 13.21 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003913/0.4024, allocations: 58.52 kB / 1.348 GB, free: 13.14 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.4025, allocations: 24.91 kB / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.4026, allocations: 7.984 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.4026, allocations: 30.56 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.193e-06/0.4026, allocations: 7.938 kB / 1.348 GB, free: 13.06 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0004144/0.4031, allocations: 93.59 kB / 1.348 GB, free: 12.96 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.4031, allocations: 59.39 kB / 1.348 GB, free: 12.89 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.4032, allocations: 97.86 kB / 1.348 GB, free: 12.79 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.4032, allocations: 25.7 kB / 1.348 GB, free: 12.76 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.508e-05/0.4033, allocations: 84.14 kB / 1.348 GB, free: 12.67 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.4033, allocations: 7.938 kB / 1.348 GB, free: 12.66 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.4033, allocations: 17.72 kB / 1.348 GB, free: 12.64 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4035, allocations: 318.8 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.554e-05/0.4036, allocations: 23.97 kB / 1.349 GB, free: 12.3 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.227e-05/0.4037, allocations: 15.98 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.4038, allocations: 52.75 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.4038, allocations: 3.938 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000215/0.404, allocations: 73.66 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.4041, allocations: 6.344 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4041, allocations: 0 / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.4041, allocations: 0 / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.287e-05/0.4042, allocations: 11.98 kB / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.4042, allocations: 0 / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.447e-05/0.4042, allocations: 23.81 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.4042, allocations: 4 kB / 1.349 GB, free: 12.1 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 9.692e-05/0.4043, allocations: 117.7 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.4044, allocations: 0 / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002681/0.4046, allocations: 89.27 kB / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.4046, allocations: 0 / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4046, allocations: 0 / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.4046, allocations: 0 / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.4048, allocations: 136.7 kB / 1.349 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4048, allocations: 0 / 1.349 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.533e-05/0.4049, allocations: 11.98 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.4049, allocations: 0.5625 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.128e-06/0.4049, allocations: 4 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4049, allocations: 3.984 kB / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4049, allocations: 0 / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.4052, allocations: 183.4 kB / 1.349 GB, free: 11.49 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 9.838e-06/0.4052, allocations: 3.953 kB / 1.349 GB, free: 11.48 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.4052, allocations: 0 / 1.349 GB, free: 11.48 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.4053, allocations: 11.98 kB / 1.349 GB, free: 11.47 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.4054, allocations: 7.984 kB / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.678e-06/0.4054, allocations: 0 / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.497e-05/0.4054, allocations: 87.28 kB / 1.349 GB, free: 11.38 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4054, allocations: 0 / 1.349 GB, free: 11.38 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002426/0.4057, allocations: 8 kB / 1.349 GB, free: 11.37 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.00071/0.4064, allocations: 0.7006 MB / 1.35 GB, free: 10.64 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002484/0.4066, allocations: 47.95 kB / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4066, allocations: 0 / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.999e-05/0.4067, allocations: 27.97 kB / 1.35 GB, free: 10.57 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.4071, allocations: 4 kB / 1.35 GB, free: 10.56 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/0.4076, allocations: 151.1 kB / 1.35 GB, free: 10.38 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.998e-05/0.4076, allocations: 63.28 kB / 1.35 GB, free: 10.29 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.129e-05/0.4077, allocations: 11.88 kB / 1.35 GB, free: 10.28 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.4077, allocations: 19.44 kB / 1.35 GB, free: 10.26 MB / 1.045 GB Notification: Performance of SimCode: time 5.51e-07/0.4077, allocations: 0 / 1.35 GB, free: 10.26 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.4292, allocations: 1.772 MB / 1.352 GB, free: 8.633 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.62, allocations: 9.031 kB / 1.352 GB, free: 8.629 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.95515177794732] Failed to read output from testmodel.py, exit status != 0: 11.785722391912714 11.818687039 11.412808782 Calling exit ...