Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001957/0.001957, allocations: 119.2 kB / 19.7 MB, free: 2.188 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.002685/0.002685, allocations: 222.9 kB / 23 MB, free: 5.004 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9659/0.9659, allocations: 150 MB / 463.2 MB, free: 10.54 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002185/0.002185, allocations: 70.7 kB / 0.6413 GB, free: 10.44 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1921, allocations: 89.17 MB / 0.7284 GB, free: 1.336 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.002833/0.1949, allocations: 1.539 MB / 0.7299 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003929/0.1953, allocations: 131.6 kB / 0.73 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.507e-05/0.1953, allocations: 4 kB / 0.73 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.083e-05/0.1953, allocations: 3.938 kB / 0.73 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.782e-05/0.1954, allocations: 0 / 0.73 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.1956, allocations: 23.92 kB / 0.73 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.221e-05/0.1957, allocations: 27.92 kB / 0.73 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.286e-05/0.1958, allocations: 11.97 kB / 0.7301 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.012e-05/0.1958, allocations: 15.94 kB / 0.7301 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.758e-05/0.1959, allocations: 15.92 kB / 0.7301 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.1959, allocations: 4 kB / 0.7301 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.435e-05/0.196, allocations: 11.98 kB / 0.7301 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.398e-05/0.196, allocations: 11.94 kB / 0.7301 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.688e-05/0.196, allocations: 15.92 kB / 0.7301 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.1961, allocations: 40.11 kB / 0.7302 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1961, allocations: 0 / 0.7302 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1961, allocations: 0 / 0.7302 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.1961, allocations: 0 / 0.7302 GB, free: 15.47 MB / 0.5606 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.000431/0.1966, allocations: 266.3 kB / 0.7304 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1966, allocations: 8.031 kB / 0.7304 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.1966, allocations: 38.73 kB / 0.7305 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.304e-05/0.1967, allocations: 4.938 kB / 0.7305 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.1968, allocations: 118.4 kB / 0.7306 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.1968, allocations: 4.359 kB / 0.7306 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.1968, allocations: 384 / 0.7306 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.197, allocations: 58.23 kB / 0.7306 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.197, allocations: 3.938 kB / 0.7306 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.197, allocations: 0 / 0.7306 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.197, allocations: 3.984 kB / 0.7306 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.1972, allocations: 43.97 kB / 0.7307 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003738/0.1976, allocations: 239.9 kB / 0.7309 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.1979, allocations: 58.53 kB / 0.731 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.957e-05/0.198, allocations: 24.91 kB / 0.731 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.197e-05/0.1981, allocations: 4 kB / 0.731 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.1981, allocations: 34.56 kB / 0.731 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1981, allocations: 0 / 0.731 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003727/0.1985, allocations: 93.56 kB / 0.7311 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.1985, allocations: 51.41 kB / 0.7312 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.179e-05/0.1986, allocations: 105.8 kB / 0.7313 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.1986, allocations: 33.64 kB / 0.7313 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.1987, allocations: 88.14 kB / 0.7314 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.1987, allocations: 3.953 kB / 0.7314 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.1987, allocations: 21.7 kB / 0.7314 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1988, allocations: 310.8 kB / 0.7317 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.664e-05/0.1989, allocations: 19.98 kB / 0.7317 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.955e-05/0.199, allocations: 19.97 kB / 0.7317 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.1992, allocations: 48.77 kB / 0.7318 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1992, allocations: 3.984 kB / 0.7318 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002331/0.1994, allocations: 77.59 kB / 0.7319 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.1994, allocations: 4 kB / 0.7319 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.1994, allocations: 0 / 0.7319 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.1995, allocations: 3.938 kB / 0.7319 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.34e-05/0.1995, allocations: 11.98 kB / 0.7319 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1995, allocations: 4 kB / 0.7319 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.696e-05/0.1996, allocations: 7.984 kB / 0.7319 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.1996, allocations: 0 / 0.7319 GB, free: 13.49 MB / 0.5606 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.58e-05/0.1997, allocations: 120.3 kB / 0.732 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.1997, allocations: 3.953 kB / 0.732 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.2, allocations: 93.19 kB / 0.7321 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2, allocations: 4 kB / 0.7321 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2, allocations: 4 kB / 0.7321 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2, allocations: 0 / 0.7321 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.2002, allocations: 136.7 kB / 0.7322 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2002, allocations: 0 / 0.7322 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.011e-05/0.2002, allocations: 15.98 kB / 0.7323 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2002, allocations: 0 / 0.7323 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.2002, allocations: 0 / 0.7323 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.2003, allocations: 0 / 0.7323 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2003, allocations: 0 / 0.7323 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.2005, allocations: 179.4 kB / 0.7324 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.075e-06/0.2005, allocations: 4 kB / 0.7324 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.2005, allocations: 0 / 0.7324 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-05/0.2006, allocations: 7.984 kB / 0.7324 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.2007, allocations: 7.938 kB / 0.7325 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.2007, allocations: 4 kB / 0.7325 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.319e-05/0.2007, allocations: 83.27 kB / 0.7325 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.1e-08/0.2007, allocations: 0 / 0.7325 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002267/0.2009, allocations: 8 kB / 0.7325 GB, free: 12.75 MB / 0.5606 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.0005923/0.2015, allocations: 0.7124 MB / 0.7332 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.2018, allocations: 51.89 kB / 0.7333 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2018, allocations: 0 / 0.7333 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.622e-05/0.2019, allocations: 23.97 kB / 0.7333 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.2021, allocations: 4 kB / 0.7333 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004421/0.2026, allocations: 143.1 kB / 0.7335 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.2029, allocations: 0.6846 MB / 0.7341 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.585e-05/0.2029, allocations: 0 / 0.7341 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.2029, allocations: 15.42 kB / 0.7341 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.2029, allocations: 0 / 0.7341 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02829/0.2312, allocations: 1.712 MB / 0.7358 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.26, allocations: 6.281 kB / 0.7358 GB, free: 9.453 MB / 0.5606 GB " [Timeout remaining time 649] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.017358833923936] Failed to read output from testmodel.py, exit status != 0: 11.366035285871476 11.382347459 11.183056941 Calling exit ...