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.0007079/0.0007079, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.000709/0.000709, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.8617/0.8617, allocations: 177.2 MB / 202.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] 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.001335/0.001335, allocations: 234.5 kB / 259.4 MB, free: 12.92 MB / 250.7 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 0.6312/0.6312, allocations: 138.4 MB / 454.3 MB, free: 1.633 MB / 362.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 1.5 kB / 0.6464 GB, free: 29.01 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.055e-05/1.252e-05, allocations: 2.281 kB / 0.6464 GB, free: 29 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.000987/0.0009995, allocations: 0.59 MB / 0.6469 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0002376/0.001237, allocations: 51.89 kB / 0.647 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.508e-05/0.001252, allocations: 4 kB / 0.647 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 1.458e-05/0.001267, allocations: 0 / 0.647 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 6.202e-06/0.001273, allocations: 0 / 0.647 GB, free: 28.52 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.001513, allocations: 13.22 kB / 0.647 GB, free: 28.51 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 4.474e-05/0.001558, allocations: 9.234 kB / 0.647 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.0016, allocations: 2.125 kB / 0.647 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 2.708e-05/0.001627, allocations: 1.219 kB / 0.647 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 1.981e-05/0.001647, allocations: 1.062 kB / 0.647 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.00166, allocations: 3.984 kB / 0.647 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 7.848e-05/0.001739, allocations: 12.23 kB / 0.647 GB, free: 28.49 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.001748, allocations: 1.094 kB / 0.647 GB, free: 28.49 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 1.436e-05/0.001762, allocations: 5.125 kB / 0.647 GB, free: 28.49 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 8.003e-05/0.001842, allocations: 8.422 kB / 0.647 GB, free: 28.48 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.001844, allocations: 7.938 kB / 0.6471 GB, free: 28.48 MB / 0.5105 GB Notification: Performance of FrontEnd: time 9.31e-07/0.001845, allocations: 0 / 0.6471 GB, free: 28.48 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.001849, allocations: 1.094 kB / 0.6471 GB, free: 28.48 MB / 0.5105 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.0001698/0.002018, allocations: 235.1 kB / 0.6473 GB, free: 28.22 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.002054, allocations: 9.75 kB / 0.6473 GB, free: 28.22 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.995e-05/0.002074, allocations: 31.88 kB / 0.6473 GB, free: 28.18 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.951e-05/0.002094, allocations: 0.9375 kB / 0.6473 GB, free: 28.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.336e-05/0.002127, allocations: 107 kB / 0.6474 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.002137, allocations: 5.781 kB / 0.6474 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-06/0.002143, allocations: 4.375 kB / 0.6474 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.959e-05/0.002212, allocations: 30.64 kB / 0.6475 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.002218, allocations: 192 / 0.6475 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.002225, allocations: 384 / 0.6475 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.002229, allocations: 9.156 kB / 0.6475 GB, free: 28.01 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.941e-05/0.002259, allocations: 10.61 kB / 0.6475 GB, free: 28 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.683e-05/0.002336, allocations: 123.1 kB / 0.6476 GB, free: 27.84 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 4.217e-05/0.002378, allocations: 19.86 kB / 0.6476 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.297e-05/0.002391, allocations: 7.047 kB / 0.6476 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001177/0.002509, allocations: 15.3 kB / 0.6476 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.244e-05/0.002521, allocations: 32.06 kB / 0.6477 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.002522, allocations: 0 / 0.6477 GB, free: 27.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0001099/0.002632, allocations: 38.95 kB / 0.6477 GB, free: 27.72 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.126e-05/0.002653, allocations: 60.78 kB / 0.6478 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.188e-05/0.002665, allocations: 93.84 kB / 0.6479 GB, free: 27.55 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.328e-06/0.002669, allocations: 25.7 kB / 0.6479 GB, free: 27.52 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.203e-06/0.002676, allocations: 81.61 kB / 0.648 GB, free: 27.44 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.00269, allocations: 3.953 kB / 0.648 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.959e-05/0.00271, allocations: 12.44 kB / 0.648 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 2.625e-05/0.002736, allocations: 320.4 kB / 0.6483 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.879e-06/0.002746, allocations: 2.906 kB / 0.6483 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.31e-06/0.002751, allocations: 1.375 kB / 0.6483 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.592e-05/0.002777, allocations: 18.34 kB / 0.6483 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.002779, allocations: 0 / 0.6483 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.207e-05/0.002811, allocations: 37.83 kB / 0.6483 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.002823, allocations: 8.875 kB / 0.6483 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.002827, allocations: 0 / 0.6483 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.002837, allocations: 1.281 kB / 0.6483 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-05/0.002884, allocations: 11.05 kB / 0.6484 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.002889, allocations: 7.938 kB / 0.6484 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.027e-06/0.002898, allocations: 1.094 kB / 0.6484 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.002903, allocations: 1.312 kB / 0.6484 GB, free: 27.03 MB / 0.5105 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 3.549e-05/0.002938, allocations: 111.9 kB / 0.6485 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-06/0.002941, allocations: 0 / 0.6485 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.716e-05/0.002998, allocations: 44.31 kB / 0.6485 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.003, allocations: 1.156 kB / 0.6485 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.003004, allocations: 3.938 kB / 0.6485 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.003007, allocations: 1.5 kB / 0.6485 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.221e-05/0.003039, allocations: 126.2 kB / 0.6486 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.00304, allocations: 0 / 0.6486 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.007e-06/0.003049, allocations: 10.97 kB / 0.6487 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.12e-07/0.003049, allocations: 1.406 kB / 0.6487 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.003055, allocations: 0 / 0.6487 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.003056, allocations: 1.188 kB / 0.6487 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.003057, allocations: 3.938 kB / 0.6487 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.417e-05/0.003092, allocations: 63.19 kB / 0.6487 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-06/0.003095, allocations: 1.406 kB / 0.6487 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-06/0.003104, allocations: 7.875 kB / 0.6487 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.338e-06/0.003108, allocations: 5.375 kB / 0.6487 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.342e-05/0.003131, allocations: 5.25 kB / 0.6487 GB, free: 26.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.003134, allocations: 1.344 kB / 0.6487 GB, free: 26.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 8.826e-06/0.003143, allocations: 75.28 kB / 0.6488 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.1e-08/0.003143, allocations: 0 / 0.6488 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001189/0.003262, allocations: 3.438 kB / 0.6488 GB, free: 26.53 MB / 0.5105 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.0001666/0.003428, allocations: 0.6021 MB / 0.6494 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 5.921e-05/0.003487, allocations: 11.59 kB / 0.6494 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.003489, allocations: 4.094 kB / 0.6494 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 9.748e-06/0.003499, allocations: 3.656 kB / 0.6494 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.941e-05/0.003588, allocations: 9.156 kB / 0.6494 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002068/0.003795, allocations: 115.1 kB / 0.6495 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.047e-05/0.003815, allocations: 55.11 kB / 0.6496 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.178e-06/0.003824, allocations: 1.094 kB / 0.6496 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.873e-05/0.003843, allocations: 10.03 kB / 0.6496 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of SimCode: time 2.41e-07/0.003843, allocations: 1.344 kB / 0.6496 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.01613, allocations: 1.732 MB / 0.6513 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.574/6.59, allocations: 6.781 kB / 0.6513 GB, free: 24.51 MB / 0.5105 GB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 9.151145941577852] Failed to read output from testmodel.py, exit status != 0: 6.665098501369357 6.6733980299999995 6.669965407 Calling exit ...