Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.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.001573/0.001573, allocations: 82.8 kB / 19.18 MB, free: 2.531 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.001344/0.001344, allocations: 170.8 kB / 22.46 MB, free: 5.348 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.427/1.427, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1693/0.1693, allocations: 24.13 MB / 283.3 MB, free: 8.992 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.103e-06/2.103e-06, allocations: 0 / 420.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.503e-05/3.713e-05, allocations: 2.281 kB / 420.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008769/0.008806, allocations: 6.434 MB / 427 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004633/0.01344, allocations: 2.365 MB / 429.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000857/0.0143, allocations: 35.69 kB / 429.4 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005047/0.0148, allocations: 174.4 kB / 429.5 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006207/0.01542, allocations: 202.5 kB / 429.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007878/0.01621, allocations: 326.7 kB / 430.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008536/0.01706, allocations: 0.7496 MB / 430.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004683/0.01753, allocations: 248.9 kB / 431.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004653/0.018, allocations: 339 kB / 431.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.01823, allocations: 175.3 kB / 431.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.181e-05/0.01831, allocations: 44 kB / 431.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.0185, allocations: 87.91 kB / 431.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.01869, allocations: 151.3 kB / 431.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.01887, allocations: 159.4 kB / 432 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008007/0.01967, allocations: 0.65 MB / 432.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.01967, allocations: 0 / 432.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.01967, allocations: 0 / 432.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.01968, allocations: 0 / 432.6 MB, free: 0.5273 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00156/0.02124, allocations: 0.9437 MB / 433.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.02129, allocations: 12.75 kB / 433.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003084/0.0216, allocations: 107.4 kB / 433.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007573/0.02235, allocations: 440.2 kB / 434.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.02239, allocations: 29 kB / 434.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.02244, allocations: 36 kB / 434.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.02355, allocations: 0.8138 MB / 435 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.02356, allocations: 0 / 435 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.479e-05/0.02361, allocations: 19.94 kB / 435 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.02362, allocations: 12 kB / 435 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007203/0.02434, allocations: 254.4 kB / 435.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.02603, allocations: 0.9243 MB / 436.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007262/0.02676, allocations: 165.1 kB / 436.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.02701, allocations: 85.66 kB / 436.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.02704, allocations: 3.938 kB / 436.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.02707, allocations: 38.56 kB / 436.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.02707, allocations: 0 / 436.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009573/0.02803, allocations: 297.4 kB / 436.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000279/0.02831, allocations: 448.9 kB / 437.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007795/0.02909, allocations: 0.6449 MB / 437.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.02912, allocations: 25.7 kB / 437.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002836/0.0294, allocations: 324.5 kB / 438.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.02944, allocations: 35.69 kB / 438.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.02955, allocations: 53.61 kB / 438.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002197/0.02977, allocations: 374.7 kB / 438.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/0.03004, allocations: 67.94 kB / 438.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005602/0.0306, allocations: 0.5443 MB / 439.3 MB, free: 9.332 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005204/0.03112, allocations: 150.4 kB / 439.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.03113, allocations: 8 kB / 439.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006905/0.03182, allocations: 253.1 kB / 439.7 MB, free: 8.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.03184, allocations: 4 kB / 439.7 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.03184, allocations: 0 / 439.7 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.03186, allocations: 4 kB / 439.7 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.03211, allocations: 39.95 kB / 439.7 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.03212, allocations: 3.938 kB / 439.7 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.03249, allocations: 52.11 kB / 439.8 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.03252, allocations: 11.92 kB / 439.8 MB, free: 8.801 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0002589/0.03277, allocations: 177.8 kB / 440 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.0329, allocations: 63.58 kB / 440 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006436/0.03354, allocations: 195.2 kB / 440.2 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.03355, allocations: 3.938 kB / 440.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.03356, allocations: 8 kB / 440.2 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.03357, allocations: 0 / 440.2 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006071/0.03417, allocations: 353 kB / 440.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.03417, allocations: 4 kB / 440.6 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.03438, allocations: 27.97 kB / 440.6 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001881/0.03456, allocations: 4 kB / 440.6 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.03458, allocations: 0 / 440.6 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.03458, allocations: 0 / 440.6 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.03459, allocations: 3.984 kB / 440.6 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008033/0.03539, allocations: 414.2 kB / 441 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.03563, allocations: 93.47 kB / 441.1 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.786e-05/0.03569, allocations: 8 kB / 441.1 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/0.03605, allocations: 35.95 kB / 441.2 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.453e-05/0.03612, allocations: 7.984 kB / 441.2 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.03614, allocations: 7.984 kB / 441.2 MB, free: 7.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006046/0.03675, allocations: 467 kB / 441.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.03675, allocations: 0 / 441.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004526/0.0372, allocations: 115.6 kB / 441.7 MB, free: 6.789 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.001448/0.03865, allocations: 375.7 kB / 442.1 MB, free: 6.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006495/0.0393, allocations: 163.8 kB / 442.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.0393, allocations: 4 kB / 442.3 MB, free: 6.402 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002803/0.03958, allocations: 83.86 kB / 442.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000812/0.04039, allocations: 139 kB / 442.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.04207, allocations: 0.8944 MB / 443.4 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.04238, allocations: 288.1 kB / 443.7 MB, free: 4.957 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002263/0.04261, allocations: 63.47 kB / 443.7 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.04273, allocations: 40.48 kB / 443.8 MB, free: 4.852 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.04273, allocations: 4 kB / 443.8 MB, free: 4.848 MB / 366.1 MB Notification: Performance of Templates: time 0.1821/0.2248, allocations: 7.137 MB / 450.9 MB, free: 38.16 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.700565367937088] Failed to read output from testmodel.py, exit status != 0: 0.23308080434799194 0.24401603700000002 0.221767507 Calling exit ...