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.0006153/0.0006153, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007078/0.0007078, allocations: 181.9 kB / 23.22 MB, free: 1.348 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.8415/0.8415, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.001313/0.001313, allocations: 235.8 kB / 260.2 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.6381/0.6381, allocations: 138.4 MB / 455.1 MB, free: 29.94 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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 0.6476 GB, free: 1.277 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.416e-05/1.547e-05, allocations: 2.281 kB / 0.6476 GB, free: 1.273 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.0008856/0.0009011, allocations: 0.5909 MB / 0.6482 GB, free: 0.6836 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0002003/0.001101, allocations: 44.56 kB / 0.6482 GB, free: 0.6406 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.379e-05/0.001115, allocations: 0 / 0.6482 GB, free: 0.6406 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 1.471e-05/0.00113, allocations: 3.938 kB / 0.6482 GB, free: 0.6367 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 6.773e-06/0.001137, allocations: 4 kB / 0.6482 GB, free: 0.6328 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002014/0.001338, allocations: 15.92 kB / 0.6482 GB, free: 0.6172 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 4.065e-05/0.001379, allocations: 7.984 kB / 0.6482 GB, free: 0.6094 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.001416, allocations: 0 / 0.6482 GB, free: 0.6094 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 2.338e-05/0.001439, allocations: 4 kB / 0.6482 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 1.858e-05/0.001458, allocations: 0 / 0.6482 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.001469, allocations: 0 / 0.6482 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 6.9e-05/0.001538, allocations: 11.98 kB / 0.6482 GB, free: 0.5938 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.00155, allocations: 7.984 kB / 0.6483 GB, free: 0.5859 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 1.285e-05/0.001563, allocations: 0 / 0.6483 GB, free: 0.5859 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 8.293e-05/0.001646, allocations: 15.92 kB / 0.6483 GB, free: 0.5703 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.001647, allocations: 0 / 0.6483 GB, free: 0.5703 MB / 0.5573 GB Notification: Performance of FrontEnd: time 4.1e-07/0.001648, allocations: 0 / 0.6483 GB, free: 0.5703 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.001651, allocations: 4 kB / 0.6483 GB, free: 0.5664 MB / 0.5573 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.0001974/0.001849, allocations: 238.4 kB / 0.6485 GB, free: 308 kB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.001881, allocations: 17.88 kB / 0.6485 GB, free: 292 kB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.516e-05/0.001906, allocations: 0.9375 kB / 0.6485 GB, free: 292 kB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.498e-05/0.001961, allocations: 105.8 kB / 0.6486 GB, free: 160 kB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.138e-06/0.00197, allocations: 384 / 0.6486 GB, free: 160 kB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.001978, allocations: 4.375 kB / 0.6486 GB, free: 156 kB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.779e-05/0.002056, allocations: 34.2 kB / 0.6487 GB, free: 116 kB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.002062, allocations: 192 / 0.6487 GB, free: 116 kB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.00207, allocations: 384 / 0.6487 GB, free: 116 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.002074, allocations: 4.375 kB / 0.6487 GB, free: 112 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.996e-05/0.002104, allocations: 11.94 kB / 0.6487 GB, free: 100 kB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.241/0.2431, allocations: 97.31 kB / 0.6488 GB, free: 57.14 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 6.255e-05/0.2431, allocations: 21.33 kB / 0.6488 GB, free: 57.12 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.531e-05/0.2431, allocations: 8.609 kB / 0.6488 GB, free: 57.11 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.2433, allocations: 6 kB / 0.6488 GB, free: 57.11 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.594e-05/0.2433, allocations: 34.78 kB / 0.6488 GB, free: 57.07 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=2): time 1.542e-06/0.2433, allocations: 0 / 0.6488 GB, free: 57.07 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2): time 0.0001329/0.2434, allocations: 40.41 kB / 0.6489 GB, free: 57.04 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.338e-05/0.2435, allocations: 54.38 kB / 0.6489 GB, free: 56.98 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.766e-05/0.2435, allocations: 93.39 kB / 0.649 GB, free: 56.88 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.16e-06/0.2435, allocations: 25.7 kB / 0.649 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 7.384e-06/0.2435, allocations: 80.14 kB / 0.6491 GB, free: 56.77 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/0.2435, allocations: 4.469 kB / 0.6491 GB, free: 56.77 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.2435, allocations: 16.75 kB / 0.6491 GB, free: 56.75 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.343e-05/0.2436, allocations: 316.4 kB / 0.6494 GB, free: 56.44 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-06/0.2436, allocations: 5.109 kB / 0.6494 GB, free: 56.44 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.244e-06/0.2436, allocations: 4.969 kB / 0.6494 GB, free: 56.44 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.743e-05/0.2436, allocations: 14.17 kB / 0.6495 GB, free: 56.43 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2436, allocations: 0.8125 kB / 0.6495 GB, free: 56.43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.63e-05/0.2437, allocations: 40.08 kB / 0.6495 GB, free: 56.4 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2437, allocations: 6.531 kB / 0.6495 GB, free: 56.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2437, allocations: 1 kB / 0.6495 GB, free: 56.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.2437, allocations: 6.547 kB / 0.6495 GB, free: 56.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.824e-05/0.2437, allocations: 2.375 kB / 0.6495 GB, free: 56.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.2438, allocations: 1.031 kB / 0.6495 GB, free: 56.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.438e-06/0.2438, allocations: 3.938 kB / 0.6495 GB, free: 56.39 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-06/0.2438, allocations: 2.156 kB / 0.6495 GB, free: 56.39 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 (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.927e-05/0.2438, allocations: 111.4 kB / 0.6496 GB, free: 56.28 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.877e-06/0.2438, allocations: 3.906 kB / 0.6496 GB, free: 56.28 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.004e-05/0.2439, allocations: 47.78 kB / 0.6497 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2439, allocations: 0.8125 kB / 0.6497 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2439, allocations: 2.719 kB / 0.6497 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2439, allocations: 6.906 kB / 0.6497 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.711e-05/0.2439, allocations: 98.47 kB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2439, allocations: 0.9844 kB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.01e-05/0.2439, allocations: 3.594 kB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.32e-07/0.2439, allocations: 0 / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.2439, allocations: 4.656 kB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.2439, allocations: 0.6562 kB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.244, allocations: 1.656 kB / 0.6498 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.602e-05/0.244, allocations: 66.64 kB / 0.6499 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-06/0.244, allocations: 1.281 kB / 0.6499 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.088e-05/0.244, allocations: 2.75 kB / 0.6499 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.42e-06/0.244, allocations: 4.094 kB / 0.6499 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.921e-05/0.244, allocations: 5.328 kB / 0.6499 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.244, allocations: 2.375 kB / 0.6499 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 1.026e-05/0.2441, allocations: 76.03 kB / 0.6499 GB, free: 55.98 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.1e-08/0.2441, allocations: 0.5 kB / 0.6499 GB, free: 55.98 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001217/0.2442, allocations: 9.625 kB / 0.65 GB, free: 55.98 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,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.0001309/0.2443, allocations: 101.2 kB / 0.65 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 6.705e-05/0.2444, allocations: 9.891 kB / 0.6501 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.72e-07/0.2444, allocations: 9.188 kB / 0.6501 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 7.765e-06/0.2444, allocations: 5.75 kB / 0.6501 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.251e-05/0.2445, allocations: 1.938 kB / 0.6501 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001697/0.2446, allocations: 111.6 kB / 0.6502 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.854e-05/0.2447, allocations: 56.39 kB / 0.6502 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.426e-05/0.2447, allocations: 11.06 kB / 0.6502 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of SimCode: time 4.31e-07/0.2447, allocations: 0 / 0.6502 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of Templates: time 0.001438/0.2461, allocations: 466.8 kB / 0.6507 GB, free: 55.7 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.136574295349419] Failed to read output from testmodel.py, exit status != 0: 0.2510436363518238 0.258430602 0.25527645200000004 Calling exit ...