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.001282/0.001282, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001507/0.001507, allocations: 216.2 kB / 22.25 MB, free: 5.082 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.446/1.446, allocations: 230.6 MB / 256 MB, free: 8.043 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.002776/0.002776, allocations: 280.4 kB / 312.7 MB, free: 2.863 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.277/1.277, allocations: 180.6 MB / 0.5369 GB, free: 13.06 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="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: 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.002864/0.002864, allocations: 100.5 kB / 0.7396 GB, free: 28.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2178, allocations: 95.39 MB / 0.8327 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.003628/0.2214, allocations: 1.551 MB / 0.8342 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0004568/0.2219, allocations: 124.5 kB / 0.8344 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.111e-05/0.2219, allocations: 4 kB / 0.8344 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 4.114e-05/0.222, allocations: 3.938 kB / 0.8344 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.89e-05/0.222, allocations: 0 / 0.8344 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.2223, allocations: 27.91 kB / 0.8344 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 9.716e-05/0.2224, allocations: 31.92 kB / 0.8344 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.2225, allocations: 7.984 kB / 0.8344 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.826e-05/0.2226, allocations: 11.94 kB / 0.8345 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/0.2226, allocations: 15.97 kB / 0.8345 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.2226, allocations: 7.938 kB / 0.8345 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.891e-05/0.2227, allocations: 19.98 kB / 0.8345 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.63e-05/0.2227, allocations: 7.938 kB / 0.8345 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.67e-05/0.2228, allocations: 19.92 kB / 0.8345 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.2229, allocations: 36.11 kB / 0.8346 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2229, allocations: 0 / 0.8346 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2229, allocations: 0 / 0.8346 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.2229, allocations: 0 / 0.8346 GB, free: 6.777 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.0005491/0.2235, allocations: 266.3 kB / 0.8348 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.2235, allocations: 13.34 kB / 0.8348 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.027e-05/0.2236, allocations: 34.73 kB / 0.8349 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.355e-05/0.2236, allocations: 4.891 kB / 0.8349 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.2237, allocations: 110.5 kB / 0.835 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.2237, allocations: 384 / 0.835 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.2238, allocations: 12.31 kB / 0.835 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002113/0.224, allocations: 50.23 kB / 0.835 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.224, allocations: 7.922 kB / 0.835 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.224, allocations: 4 kB / 0.835 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.224, allocations: 0 / 0.835 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.2242, allocations: 47.94 kB / 0.8351 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000487/0.2247, allocations: 236 kB / 0.8353 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.225, allocations: 58.47 kB / 0.8354 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.2251, allocations: 26.58 kB / 0.8354 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-05/0.2252, allocations: 4 kB / 0.8354 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.2253, allocations: 38.55 kB / 0.8354 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.2253, allocations: 0 / 0.8354 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003988/0.2257, allocations: 89.64 kB / 0.8355 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.2257, allocations: 55.34 kB / 0.8356 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.2258, allocations: 105.8 kB / 0.8357 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.2259, allocations: 29.7 kB / 0.8357 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.991e-05/0.2259, allocations: 84.08 kB / 0.8358 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.091e-05/0.2259, allocations: 3.953 kB / 0.8358 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.226, allocations: 21.7 kB / 0.8358 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2261, allocations: 314.8 kB / 0.8361 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.672e-05/0.2262, allocations: 15.98 kB / 0.8361 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.343e-05/0.2263, allocations: 23.97 kB / 0.8361 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.2265, allocations: 48.75 kB / 0.8362 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.2265, allocations: 8 kB / 0.8362 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002255/0.2267, allocations: 77.55 kB / 0.8363 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.2267, allocations: 4 kB / 0.8363 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2267, allocations: 4 kB / 0.8363 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.2268, allocations: 0 / 0.8363 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.292e-05/0.2268, allocations: 15.92 kB / 0.8363 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.2268, allocations: 4 kB / 0.8363 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.582e-05/0.2269, allocations: 7.984 kB / 0.8363 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.2269, allocations: 0 / 0.8363 GB, free: 4.793 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 0.0001063/0.227, allocations: 118.4 kB / 0.8364 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.206e-05/0.227, allocations: 4 kB / 0.8364 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003018/0.2273, allocations: 77.33 kB / 0.8365 GB, free: 4.574 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2273, allocations: 4.562 kB / 0.8365 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2274, allocations: 3.938 kB / 0.8365 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2274, allocations: 4 kB / 0.8365 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.2275, allocations: 136.7 kB / 0.8366 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2275, allocations: 0 / 0.8366 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.696e-05/0.2276, allocations: 11.98 kB / 0.8366 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.2276, allocations: 0 / 0.8366 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.2276, allocations: 4 kB / 0.8366 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2276, allocations: 0 / 0.8366 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2276, allocations: 0 / 0.8366 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.2279, allocations: 183.4 kB / 0.8368 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.798e-06/0.2279, allocations: 3.953 kB / 0.8368 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.2279, allocations: 0 / 0.8368 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-05/0.228, allocations: 11.98 kB / 0.8368 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.179e-05/0.2281, allocations: 4 kB / 0.8368 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.2281, allocations: 3.938 kB / 0.8368 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 5.374e-05/0.2281, allocations: 91.27 kB / 0.8369 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.2281, allocations: 3.938 kB / 0.8369 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002287/0.2284, allocations: 8 kB / 0.8369 GB, free: 4.051 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.0006817/0.229, allocations: 0.7046 MB / 0.8376 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002303/0.2293, allocations: 43.95 kB / 0.8377 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2293, allocations: 0 / 0.8377 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.2294, allocations: 31.91 kB / 0.8377 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.2297, allocations: 2.188 kB / 0.8377 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005344/0.2302, allocations: 143.2 kB / 0.8378 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.2306, allocations: 0.6807 MB / 0.8385 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 3.074e-05/0.2306, allocations: 4 kB / 0.8385 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.804e-05/0.2307, allocations: 19.42 kB / 0.8385 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of SimCode: time 5.51e-07/0.2307, allocations: 0 / 0.8385 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.2624, allocations: 1.716 MB / 0.8402 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/10.99, allocations: 15.11 kB / 0.8402 GB, free: 0.7383 MB / 0.5762 GB " [Timeout remaining time 649] (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: 15.247596533037722] Failed to read output from testmodel.py, exit status != 0: 11.087725206045434 11.107849349 10.881646623 Calling exit ...