Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001351/0.001351, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001661/0.001661, allocations: 220 kB / 23.03 MB, free: 4.945 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.434/1.434, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.003359/0.003359, allocations: 286.8 kB / 313.5 MB, free: 2.625 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.235/1.235, allocations: 180.6 MB / 0.5377 GB, free: 14.6 MB / 382.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.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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.004564/0.004564, allocations: 99.94 kB / 0.7403 GB, free: 28.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2189, allocations: 95.38 MB / 0.8334 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.003704/0.2226, allocations: 1.547 MB / 0.8349 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0004299/0.2231, allocations: 120.5 kB / 0.835 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.989e-05/0.2231, allocations: 4 kB / 0.835 GB, free: 6.684 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.2231, allocations: 3.938 kB / 0.835 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.014e-05/0.2232, allocations: 0 / 0.835 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.2235, allocations: 27.92 kB / 0.8351 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.748e-05/0.2236, allocations: 31.91 kB / 0.8351 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.2237, allocations: 11.94 kB / 0.8351 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.039e-05/0.2237, allocations: 11.98 kB / 0.8351 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.384e-05/0.2238, allocations: 15.92 kB / 0.8351 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.2238, allocations: 4 kB / 0.8351 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.483e-05/0.2239, allocations: 15.98 kB / 0.8351 GB, free: 6.562 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.2239, allocations: 4 kB / 0.8352 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.532e-05/0.2239, allocations: 19.92 kB / 0.8352 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.2241, allocations: 36.11 kB / 0.8352 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2241, allocations: 0 / 0.8352 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2241, allocations: 0 / 0.8352 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2241, allocations: 0 / 0.8352 GB, free: 6.504 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005188/0.2246, allocations: 270.3 kB / 0.8355 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.2246, allocations: 13.34 kB / 0.8355 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.156e-05/0.2247, allocations: 192 / 0.8355 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.2248, allocations: 38.69 kB / 0.8355 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.2248, allocations: 8.891 kB / 0.8355 GB, free: 6.141 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.2249, allocations: 106.5 kB / 0.8356 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.225, allocations: 4.375 kB / 0.8356 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.225, allocations: 384 / 0.8356 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.2253, allocations: 65.97 kB / 0.8357 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.2253, allocations: 0 / 0.8357 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.2253, allocations: 0 / 0.8357 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2253, allocations: 0 / 0.8357 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.2255, allocations: 47.89 kB / 0.8357 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004225/0.2259, allocations: 235.9 kB / 0.836 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.2263, allocations: 58.52 kB / 0.836 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.993e-05/0.2264, allocations: 26.58 kB / 0.836 GB, free: 5.523 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.624e-05/0.2265, allocations: 11.92 kB / 0.8361 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/0.2266, allocations: 38.56 kB / 0.8361 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.2266, allocations: 0 / 0.8361 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004051/0.227, allocations: 93.58 kB / 0.8362 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.227, allocations: 51.41 kB / 0.8362 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.583e-05/0.2271, allocations: 105.8 kB / 0.8363 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.2271, allocations: 25.7 kB / 0.8364 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.2272, allocations: 80.14 kB / 0.8364 GB, free: 5.078 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.2272, allocations: 7.953 kB / 0.8364 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.2272, allocations: 17.7 kB / 0.8365 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.2274, allocations: 322.8 kB / 0.8368 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.172e-05/0.2275, allocations: 15.97 kB / 0.8368 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.577e-05/0.2276, allocations: 23.98 kB / 0.8368 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.2277, allocations: 52.75 kB / 0.8369 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.2277, allocations: 0 / 0.8369 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002122/0.2279, allocations: 69.61 kB / 0.8369 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.228, allocations: 6.5 kB / 0.8369 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.228, allocations: 4 kB / 0.8369 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.228, allocations: 0 / 0.8369 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.529e-05/0.2281, allocations: 19.98 kB / 0.8369 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.2281, allocations: 0 / 0.8369 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.949e-05/0.2281, allocations: 7.984 kB / 0.837 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.513e-06/0.2281, allocations: 0 / 0.837 GB, free: 4.52 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 (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.881e-05/0.2282, allocations: 118.4 kB / 0.8371 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.2283, allocations: 0 / 0.8371 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.2285, allocations: 85.27 kB / 0.8371 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2285, allocations: 8 kB / 0.8372 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2285, allocations: 0 / 0.8372 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2285, allocations: 0 / 0.8372 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.2287, allocations: 133.2 kB / 0.8373 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2287, allocations: 4 kB / 0.8373 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.134e-05/0.2288, allocations: 7.984 kB / 0.8373 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.2288, allocations: 4 kB / 0.8373 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.2288, allocations: 0 / 0.8373 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2288, allocations: 3.938 kB / 0.8373 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2288, allocations: 3.984 kB / 0.8373 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.2291, allocations: 183.4 kB / 0.8375 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.518e-06/0.2292, allocations: 3.953 kB / 0.8375 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.2292, allocations: 11.94 kB / 0.8375 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.43e-05/0.2293, allocations: 7.984 kB / 0.8375 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.2293, allocations: 3.984 kB / 0.8375 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.2293, allocations: 4 kB / 0.8375 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.207e-05/0.2294, allocations: 79.28 kB / 0.8376 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.2294, allocations: 0 / 0.8376 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002226/0.2296, allocations: 8 kB / 0.8376 GB, free: 3.781 MB / 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.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.0007319/0.2303, allocations: 0.7085 MB / 0.8383 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002278/0.2306, allocations: 43.89 kB / 0.8383 GB, free: 3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2306, allocations: 0 / 0.8383 GB, free: 3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.2307, allocations: 27.97 kB / 0.8384 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.231, allocations: 0 / 0.8384 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004793/0.2314, allocations: 151.2 kB / 0.8385 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.051e-05/0.2315, allocations: 63.34 kB / 0.8386 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.2315, allocations: 4 kB / 0.8386 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.2316, allocations: 11.44 kB / 0.8386 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.2316, allocations: 3.938 kB / 0.8386 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.2534, allocations: 1.799 MB / 0.8403 GB, free: 1.039 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.51, allocations: 15 kB / 0.8403 GB, free: 1.035 MB / 0.5762 GB " [Timeout remaining time 648] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.779710271046497] Failed to read output from testmodel.py, exit status != 0: 11.67028780002147 11.700318964 11.470603018 Calling exit ...