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.00104/0.00104, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0007522/0.0007522, allocations: 169.9 kB / 22.45 MB, free: 2.109 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.8504/0.8504, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.001434/0.001434, allocations: 233.3 kB / 259.4 MB, free: 13.02 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.6466/0.6466, allocations: 138.4 MB / 454.3 MB, free: 30.04 MB / 410.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.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 0.6463 GB, free: 1.879 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.003e-05/2.173e-05, allocations: 10.22 kB / 0.6463 GB, free: 1.867 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00194/0.001961, allocations: 1.544 MB / 0.6478 GB, free: 316 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0002963/0.002258, allocations: 116.6 kB / 0.6479 GB, free: 196 kB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.189e-05/0.00229, allocations: 0 / 0.6479 GB, free: 196 kB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 2.633e-05/0.002316, allocations: 11.94 kB / 0.6479 GB, free: 184 kB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 3.936e-05/0.002355, allocations: 3.984 kB / 0.6479 GB, free: 180 kB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.002594, allocations: 27.84 kB / 0.648 GB, free: 152 kB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.000315/0.002909, allocations: 27.92 kB / 0.648 GB, free: 124 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 9.27e-05/0.003002, allocations: 8 kB / 0.648 GB, free: 116 kB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 5.064e-05/0.003052, allocations: 19.92 kB / 0.648 GB, free: 96 kB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 4.36e-05/0.003096, allocations: 15.97 kB / 0.648 GB, free: 80 kB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.003112, allocations: 4 kB / 0.648 GB, free: 76 kB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 5.659e-05/0.003169, allocations: 11.98 kB / 0.648 GB, free: 64 kB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.00318, allocations: 4 kB / 0.6481 GB, free: 60 kB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 1.987e-05/0.0032, allocations: 11.94 kB / 0.6481 GB, free: 48 kB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.003314, allocations: 39.94 kB / 0.6481 GB, free: 8 kB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.003321, allocations: 0 / 0.6481 GB, free: 8 kB / 0.5573 GB Notification: Performance of FrontEnd: time 1.052e-06/0.003322, allocations: 0 / 0.6481 GB, free: 8 kB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.379e-06/0.003327, allocations: 0 / 0.6481 GB, free: 8 kB / 0.5573 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.2197/0.223, allocations: 265.1 kB / 0.6484 GB, free: 57.11 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.223, allocations: 11.31 kB / 0.6484 GB, free: 57.11 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.34e-05/0.223, allocations: 34.02 kB / 0.6484 GB, free: 57.07 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.523e-05/0.2231, allocations: 3.188 kB / 0.6484 GB, free: 57.07 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.53e-05/0.2231, allocations: 110.7 kB / 0.6485 GB, free: 56.95 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.2231, allocations: 3.938 kB / 0.6485 GB, free: 56.95 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-06/0.2232, allocations: 384 / 0.6485 GB, free: 56.95 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.2233, allocations: 58.62 kB / 0.6486 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2233, allocations: 3.062 kB / 0.6486 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.2233, allocations: 1.547 kB / 0.6486 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2233, allocations: 5.312 kB / 0.6486 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001009/0.2234, allocations: 42.05 kB / 0.6486 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000264/0.2237, allocations: 233.3 kB / 0.6488 GB, free: 56.68 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.2239, allocations: 61.08 kB / 0.6489 GB, free: 56.65 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.46e-05/0.2239, allocations: 25.31 kB / 0.6489 GB, free: 56.64 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 7.408e-05/0.224, allocations: 11.45 kB / 0.6489 GB, free: 56.64 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.143e-05/0.224, allocations: 34.2 kB / 0.649 GB, free: 56.6 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.224, allocations: 1.406 kB / 0.649 GB, free: 56.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0002412/0.2243, allocations: 92.73 kB / 0.6491 GB, free: 56.57 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.94e-05/0.2243, allocations: 53.81 kB / 0.6491 GB, free: 56.51 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.899e-05/0.2243, allocations: 101.7 kB / 0.6492 GB, free: 56.41 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.29e-06/0.2243, allocations: 27.11 kB / 0.6492 GB, free: 56.38 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 2.348e-05/0.2244, allocations: 87.84 kB / 0.6493 GB, free: 56.3 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.2244, allocations: 7.672 kB / 0.6493 GB, free: 56.29 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.2244, allocations: 18.28 kB / 0.6493 GB, free: 56.28 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 2.581e-05/0.2244, allocations: 314.7 kB / 0.6496 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.898e-05/0.2245, allocations: 22.52 kB / 0.6497 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.142e-05/0.2245, allocations: 19.66 kB / 0.6497 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.095e-05/0.2246, allocations: 50.02 kB / 0.6497 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2246, allocations: 0 / 0.6497 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001173/0.2247, allocations: 83.34 kB / 0.6498 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2247, allocations: 6.906 kB / 0.6498 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.2247, allocations: 0 / 0.6498 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.2247, allocations: 1.609 kB / 0.6498 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.835e-05/0.2248, allocations: 13.08 kB / 0.6498 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.2248, allocations: 0.6094 kB / 0.6498 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.618e-05/0.2248, allocations: 6.281 kB / 0.6498 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.2248, allocations: 2.094 kB / 0.6498 GB, free: 55.92 MB / 0.5573 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 4.362e-05/0.2249, allocations: 119.9 kB / 0.6499 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.2249, allocations: 6.25 kB / 0.65 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.225, allocations: 80.22 kB / 0.65 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2251, allocations: 2.844 kB / 0.65 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2251, allocations: 1.281 kB / 0.65 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2251, allocations: 1.625 kB / 0.65 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.489e-05/0.2251, allocations: 129.9 kB / 0.6502 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2251, allocations: 0.7031 kB / 0.6502 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.664e-05/0.2252, allocations: 17.72 kB / 0.6502 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2252, allocations: 1.031 kB / 0.6502 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.2252, allocations: 0.6562 kB / 0.6502 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.2252, allocations: 0.7812 kB / 0.6502 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2252, allocations: 4.828 kB / 0.6502 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.2253, allocations: 170.9 kB / 0.6503 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.032e-06/0.2253, allocations: 9.406 kB / 0.6504 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.207e-06/0.2253, allocations: 0.75 kB / 0.6504 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.001e-05/0.2254, allocations: 8.469 kB / 0.6504 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.022e-05/0.2254, allocations: 11.06 kB / 0.6504 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.2254, allocations: 0.8125 kB / 0.6504 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 1.588e-05/0.2254, allocations: 86.84 kB / 0.6505 GB, free: 55.39 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2254, allocations: 0 / 0.6505 GB, free: 55.39 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001463/0.2256, allocations: 14.69 kB / 0.6505 GB, free: 55.39 MB / 0.5573 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.0002786/0.2259, allocations: 0.7055 MB / 0.6512 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001464/0.226, allocations: 46.52 kB / 0.6512 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.226, allocations: 0 / 0.6512 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 5.242e-05/0.2261, allocations: 27.94 kB / 0.6512 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.2263, allocations: 4.25 kB / 0.6512 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003269/0.2266, allocations: 145.3 kB / 0.6514 GB, free: 54.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.396e-05/0.2267, allocations: 66.83 kB / 0.6514 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 2.264e-05/0.2267, allocations: 3.344 kB / 0.6514 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.541e-05/0.2267, allocations: 17.36 kB / 0.6515 GB, free: 54.51 MB / 0.5573 GB Notification: Performance of SimCode: time 3.81e-07/0.2267, allocations: 0 / 0.6515 GB, free: 54.51 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01525/0.242, allocations: 2.281 MB / 0.6537 GB, free: 53.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.368/6.61, allocations: 9.484 kB / 0.6537 GB, free: 53.7 MB / 0.5573 GB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 9.060577310621738] Failed to read output from testmodel.py, exit status != 0: 6.686325180344284 6.69616405 6.69080799 Calling exit ...