Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.001431/0.001431, allocations: 123 kB / 17.17 MB, free: 5.918 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.001611/0.001611, allocations: 205.6 kB / 20.13 MB, free: 2.98 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.501/1.501, allocations: 230.6 MB / 253.5 MB, free: 15.13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002437/0.002437, allocations: 280.2 kB / 309.8 MB, free: 3.488 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.058/1.058, allocations: 180.6 MB / 0.5338 GB, free: 12.82 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002844/0.002844, allocations: 103.9 kB / 0.7347 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5925/0.5953, allocations: 95.35 MB / 0.8278 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001793/0.5971, allocations: 0.5915 MB / 0.8284 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002876/0.5974, allocations: 57.33 kB / 0.8285 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.924e-05/0.5974, allocations: 0 / 0.8285 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.5974, allocations: 1.406 kB / 0.8285 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.643e-06/0.5974, allocations: 0 / 0.8285 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.5977, allocations: 9.5 kB / 0.8285 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.962e-05/0.5977, allocations: 2.984 kB / 0.8285 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.28e-05/0.5978, allocations: 5.953 kB / 0.8285 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.648e-05/0.5978, allocations: 9.25 kB / 0.8285 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.154e-05/0.5978, allocations: 2.156 kB / 0.8285 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.5978, allocations: 0 / 0.8285 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.354e-05/0.5979, allocations: 13.86 kB / 0.8285 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.5979, allocations: 1.75 kB / 0.8285 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.598, allocations: 1.031 kB / 0.8285 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 9.55e-05/0.5981, allocations: 16.59 kB / 0.8285 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.5981, allocations: 0 / 0.8285 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.854e-06/0.5981, allocations: 0.875 kB / 0.8285 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.5981, allocations: 3.938 kB / 0.8285 GB, free: 2.641 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002998/0.5984, allocations: 317.3 kB / 0.8288 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.5984, allocations: 9.219 kB / 0.8288 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.633e-05/0.5984, allocations: 5.625 kB / 0.8288 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.413e-05/0.5985, allocations: 31.41 kB / 0.8289 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.5985, allocations: 2.219 kB / 0.8289 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.325e-05/0.5986, allocations: 165.9 kB / 0.829 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-06/0.5986, allocations: 384 / 0.829 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.5986, allocations: 1.562 kB / 0.829 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.5987, allocations: 39.11 kB / 0.8291 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.5987, allocations: 0 / 0.8291 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.5988, allocations: 3.938 kB / 0.8291 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.5988, allocations: 1.406 kB / 0.8291 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.307e-05/0.5988, allocations: 8.453 kB / 0.8291 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.599, allocations: 152.3 kB / 0.8292 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.949e-05/0.599, allocations: 24.73 kB / 0.8292 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.946e-05/0.599, allocations: 11.33 kB / 0.8293 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001812/0.5992, allocations: 81.61 kB / 0.8293 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.5992, allocations: 35.5 kB / 0.8294 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.5992, allocations: 4.688 kB / 0.8294 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0002001/0.5994, allocations: 45.83 kB / 0.8294 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.5995, allocations: 51.41 kB / 0.8295 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.396e-05/0.5995, allocations: 90.61 kB / 0.8296 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.5995, allocations: 28.33 kB / 0.8296 GB, free: 1.402 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.183e-05/0.5995, allocations: 80.14 kB / 0.8297 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.5996, allocations: 0.6094 kB / 0.8297 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.5996, allocations: 13.05 kB / 0.8297 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.039e-05/0.5997, allocations: 319.7 kB / 0.83 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.793e-05/0.5997, allocations: 3.422 kB / 0.83 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.398e-06/0.5997, allocations: 3.188 kB / 0.83 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.301e-05/0.5997, allocations: 18.84 kB / 0.83 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.5997, allocations: 0 / 0.83 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.903e-05/0.5998, allocations: 42.45 kB / 0.83 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.5998, allocations: 11.06 kB / 0.8301 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.5998, allocations: 4.688 kB / 0.8301 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.5998, allocations: 8.094 kB / 0.8301 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.271e-05/0.5999, allocations: 3.234 kB / 0.8301 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.5999, allocations: 3.984 kB / 0.8301 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.5999, allocations: 1.875 kB / 0.8301 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.5999, allocations: 0 / 0.8301 GB, free: 0.9102 MB / 0.5762 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.327e-05/0.6, allocations: 112.1 kB / 0.8302 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.147e-06/0.6, allocations: 5.344 kB / 0.8302 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.6001, allocations: 43.11 kB / 0.8302 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.6001, allocations: 5.281 kB / 0.8302 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6001, allocations: 0 / 0.8302 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.6001, allocations: 0.7031 kB / 0.8302 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.17e-05/0.6002, allocations: 150.5 kB / 0.8304 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.6002, allocations: 0 / 0.8304 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.181e-05/0.6002, allocations: 3.281 kB / 0.8304 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.6002, allocations: 6.562 kB / 0.8304 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.6002, allocations: 0.8438 kB / 0.8304 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.6002, allocations: 0 / 0.8304 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6003, allocations: 0 / 0.8304 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.963e-05/0.6003, allocations: 71.05 kB / 0.8305 GB, free: 492 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.932e-05/0.6004, allocations: 77.81 kB / 0.8305 GB, free: 396 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.6004, allocations: 3.938 kB / 0.8305 GB, free: 392 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.229e-05/0.6004, allocations: 0.7031 kB / 0.8305 GB, free: 392 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.6004, allocations: 7.266 kB / 0.8305 GB, free: 388 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-06/0.6004, allocations: 0 / 0.8305 GB, free: 388 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 2.006e-05/0.6005, allocations: 75.98 kB / 0.8306 GB, free: 312 kB / 0.5762 GB Notification: Performance of sort global known variables: time 4e-08/0.6005, allocations: 4.031 kB / 0.8306 GB, free: 308 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002251/0.6007, allocations: 9.25 kB / 0.8306 GB, free: 304 kB / 0.5762 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004588/0.6011, allocations: 0.5992 MB / 0.8312 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001086/0.6012, allocations: 13.31 kB / 0.8312 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6012, allocations: 4.094 kB / 0.8312 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 2.055e-05/0.6013, allocations: 8.172 kB / 0.8312 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.6014, allocations: 2.625 kB / 0.8312 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003894/0.6018, allocations: 119.2 kB / 0.8313 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.6021, allocations: 0.672 MB / 0.832 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.571e-05/0.6021, allocations: 1.906 kB / 0.832 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.6022, allocations: 9.625 kB / 0.832 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of SimCode: time 2.61e-07/0.6022, allocations: 0 / 0.832 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.62, allocations: 1.126 MB / 0.8331 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/8.799, allocations: 17.48 kB / 0.8331 GB, free: 14.47 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.806202920037322] Failed to read output from testmodel.py, exit status != 0: 8.919472232984845 8.936741954 8.335431214 Calling exit ...