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.00129/0.00129, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001474/0.001474, allocations: 215.3 kB / 22.24 MB, free: 5.262 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.389/1.389, allocations: 230.6 MB / 256 MB, free: 7.789 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.002521/0.002521, allocations: 297.5 kB / 312.7 MB, free: 2.598 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.18/1.18, allocations: 180.6 MB / 0.5369 GB, free: 14.58 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.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: 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.00297/0.00297, allocations: 104.2 kB / 0.7395 GB, free: 28.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1591, allocations: 95.39 MB / 0.8327 GB, free: 8.262 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001701/0.1608, allocations: 0.5865 MB / 0.8333 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002633/0.161, allocations: 44.22 kB / 0.8333 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.468e-05/0.161, allocations: 0 / 0.8333 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.236e-05/0.1611, allocations: 0 / 0.8333 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.081e-06/0.1611, allocations: 4 kB / 0.8333 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.1613, allocations: 7.984 kB / 0.8333 GB, free: 7.621 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.206e-05/0.1613, allocations: 8 kB / 0.8333 GB, free: 7.613 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.584e-05/0.1614, allocations: 0 / 0.8333 GB, free: 7.613 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.1614, allocations: 3.938 kB / 0.8333 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.31e-05/0.1614, allocations: 7.984 kB / 0.8333 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.875e-06/0.1614, allocations: 0 / 0.8333 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.936e-05/0.1615, allocations: 11.98 kB / 0.8334 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.675e-06/0.1615, allocations: 0 / 0.8334 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.292e-05/0.1615, allocations: 3.938 kB / 0.8334 GB, free: 7.586 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 7.389e-05/0.1616, allocations: 7.984 kB / 0.8334 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1616, allocations: 4 kB / 0.8334 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1616, allocations: 0 / 0.8334 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.1616, allocations: 0 / 0.8334 GB, free: 7.574 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002828/0.1619, allocations: 254.6 kB / 0.8336 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1619, allocations: 9.938 kB / 0.8336 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.396e-05/0.1619, allocations: 30.75 kB / 0.8336 GB, free: 7.246 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.162, allocations: 4.938 kB / 0.8337 GB, free: 7.242 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.085e-05/0.1621, allocations: 106.5 kB / 0.8338 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.1621, allocations: 384 / 0.8338 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-06/0.1621, allocations: 384 / 0.8338 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.559e-05/0.1622, allocations: 34.27 kB / 0.8338 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1622, allocations: 11.92 kB / 0.8338 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.1622, allocations: 0 / 0.8338 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.1622, allocations: 0 / 0.8338 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.493e-05/0.1622, allocations: 11.92 kB / 0.8338 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.1623, allocations: 124.7 kB / 0.8339 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.105e-05/0.1624, allocations: 18.61 kB / 0.8339 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.89e-05/0.1624, allocations: 8.922 kB / 0.834 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.1625, allocations: 15.98 kB / 0.834 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.1626, allocations: 30.56 kB / 0.834 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1626, allocations: 0 / 0.834 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.000129/0.1627, allocations: 45.58 kB / 0.834 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.1627, allocations: 59.39 kB / 0.8341 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.006e-05/0.1628, allocations: 93.86 kB / 0.8342 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.1628, allocations: 25.7 kB / 0.8342 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.071e-05/0.1629, allocations: 84.12 kB / 0.8343 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.1629, allocations: 0 / 0.8343 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/0.1629, allocations: 13.72 kB / 0.8343 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.163, allocations: 314.8 kB / 0.8346 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-06/0.163, allocations: 0 / 0.8346 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.04e-05/0.163, allocations: 8.125 kB / 0.8346 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.927e-05/0.1631, allocations: 16.91 kB / 0.8346 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1631, allocations: 0 / 0.8346 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.317e-05/0.1631, allocations: 45.59 kB / 0.8347 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.1632, allocations: 8 kB / 0.8347 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.1632, allocations: 3.938 kB / 0.8347 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.1632, allocations: 0 / 0.8347 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.282e-05/0.1632, allocations: 7.984 kB / 0.8347 GB, free: 6.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.1632, allocations: 3.938 kB / 0.8347 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.193e-05/0.1632, allocations: 0 / 0.8347 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.1632, allocations: 8.016 kB / 0.8347 GB, free: 6.008 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 (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 7.606e-05/0.1633, allocations: 114.5 kB / 0.8348 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-06/0.1633, allocations: 0 / 0.8348 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.049e-05/0.1634, allocations: 48.72 kB / 0.8349 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1634, allocations: 0 / 0.8349 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1634, allocations: 0 / 0.8349 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1634, allocations: 0 / 0.8349 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.1635, allocations: 120.8 kB / 0.835 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1635, allocations: 0 / 0.835 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-05/0.1636, allocations: 3.984 kB / 0.835 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.1636, allocations: 8.031 kB / 0.835 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.1636, allocations: 3.938 kB / 0.835 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1636, allocations: 0 / 0.835 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1636, allocations: 0 / 0.835 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.689e-05/0.1636, allocations: 61.12 kB / 0.8351 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.57e-06/0.1636, allocations: 4 kB / 0.8351 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.1637, allocations: 3.938 kB / 0.8351 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.918e-06/0.1637, allocations: 3.938 kB / 0.8351 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.229e-05/0.1637, allocations: 3.938 kB / 0.8351 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.1637, allocations: 4 kB / 0.8351 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.867e-05/0.1637, allocations: 79.31 kB / 0.8351 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.1637, allocations: 0 / 0.8351 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001817/0.1639, allocations: 11.94 kB / 0.8352 GB, free: 5.465 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,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.0004365/0.1644, allocations: 0.6007 MB / 0.8357 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.855e-05/0.1644, allocations: 11.94 kB / 0.8358 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1644, allocations: 0 / 0.8358 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.777e-05/0.1645, allocations: 8 kB / 0.8358 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.1646, allocations: 160 / 0.8358 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003067/0.1649, allocations: 114.7 kB / 0.8359 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.467e-05/0.1649, allocations: 55.3 kB / 0.8359 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.114e-05/0.1649, allocations: 4 kB / 0.8359 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.165, allocations: 11.42 kB / 0.8359 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.165, allocations: 0 / 0.8359 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.1928, allocations: 1.577 MB / 0.8375 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.89, allocations: 5.812 kB / 0.8375 GB, free: 3.125 MB / 0.5762 GB " [Timeout remaining time 649] (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: 14.854922800790519] Failed to read output from testmodel.py, exit status != 0: 10.997151718009263 11.021214051 10.855342162 Calling exit ...