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.001336/0.001336, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001454/0.001454, allocations: 218.3 kB / 23.01 MB, free: 4.605 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.447/1.447, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.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.1725/0.1725, allocations: 31.55 MB / 344.7 MB, free: 3.973 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: BusinessSimulation 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.002033/0.002033, allocations: 63.89 kB / 482.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3409, allocations: 60.72 MB / 0.5301 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007289/0.3482, allocations: 7.124 MB / 0.537 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003747/0.3519, allocations: 2.382 MB / 0.5394 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008754/0.3528, allocations: 34 kB / 0.5394 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004826/0.3533, allocations: 171.6 kB / 0.5395 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005629/0.3538, allocations: 184.2 kB / 0.5397 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008017/0.3546, allocations: 370.6 kB / 0.5401 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006515/0.3553, allocations: 0.7331 MB / 0.5408 GB, free: 192 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003606/0.3556, allocations: 246.2 kB / 0.541 GB, free: 24 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003428/0.356, allocations: 260.7 kB / 0.5413 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.3563, allocations: 245 kB / 0.5415 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.451e-05/0.3563, allocations: 44.84 kB / 0.5416 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001884/0.3565, allocations: 97.61 kB / 0.5416 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.3567, allocations: 146.7 kB / 0.5418 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.3569, allocations: 297 kB / 0.5421 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007819/0.3577, allocations: 0.6439 MB / 0.5427 GB, free: 14.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3577, allocations: 4.906 kB / 0.5427 GB, free: 14.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3577, allocations: 0 / 0.5427 GB, free: 14.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.3577, allocations: 0.875 kB / 0.5427 GB, free: 14.79 MB / 398.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.001571/0.3593, allocations: 0.9537 MB / 0.5436 GB, free: 14.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3593, allocations: 11.5 kB / 0.5436 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002967/0.3596, allocations: 102.1 kB / 0.5437 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007656/0.3604, allocations: 454.7 kB / 0.5442 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.3604, allocations: 28.91 kB / 0.5442 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.911e-05/0.3605, allocations: 34.69 kB / 0.5442 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000793/0.3613, allocations: 465.1 kB / 0.5447 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.3613, allocations: 0 / 0.5447 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.3613, allocations: 29.38 kB / 0.5447 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.3613, allocations: 8.25 kB / 0.5447 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006612/0.362, allocations: 249.9 kB / 0.545 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.3638, allocations: 1.076 MB / 0.546 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006899/0.3645, allocations: 174.7 kB / 0.5462 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.3647, allocations: 79.44 kB / 0.5462 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.3648, allocations: 14.05 kB / 0.5463 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.3648, allocations: 33.75 kB / 0.5463 GB, free: 12.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.3648, allocations: 0 / 0.5463 GB, free: 12.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008996/0.3657, allocations: 305.9 kB / 0.5466 GB, free: 11.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002504/0.3659, allocations: 441.3 kB / 0.547 GB, free: 11.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007921/0.3667, allocations: 0.6502 MB / 0.5476 GB, free: 10.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.3668, allocations: 28.64 kB / 0.5477 GB, free: 10.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.367, allocations: 319.3 kB / 0.548 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.3671, allocations: 40.36 kB / 0.548 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.3672, allocations: 56.02 kB / 0.5481 GB, free: 10.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.3674, allocations: 357.8 kB / 0.5484 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.3676, allocations: 77.19 kB / 0.5485 GB, free: 10.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003568/0.368, allocations: 191.6 kB / 0.5487 GB, free: 9.992 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004582/0.3684, allocations: 155.7 kB / 0.5488 GB, free: 9.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3684, allocations: 1.281 kB / 0.5488 GB, free: 9.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006288/0.3691, allocations: 249.6 kB / 0.5491 GB, free: 9.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.3691, allocations: 9.281 kB / 0.5491 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3691, allocations: 1.156 kB / 0.5491 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3691, allocations: 6.656 kB / 0.5491 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/0.3693, allocations: 39.48 kB / 0.5491 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3693, allocations: 5.375 kB / 0.5491 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.3697, allocations: 42.59 kB / 0.5491 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.3697, allocations: 4.031 kB / 0.5492 GB, free: 9.719 MB / 398.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.000224/0.3699, allocations: 180.7 kB / 0.5493 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.37, allocations: 64.36 kB / 0.5494 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004769/0.3705, allocations: 193.8 kB / 0.5496 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/0.3705, allocations: 10.67 kB / 0.5496 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3705, allocations: 0 / 0.5496 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3705, allocations: 5.375 kB / 0.5496 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005875/0.3711, allocations: 449.2 kB / 0.55 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3711, allocations: 1.438 kB / 0.55 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.3713, allocations: 30.56 kB / 0.55 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3713, allocations: 1.062 kB / 0.55 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.3713, allocations: 5.219 kB / 0.5501 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.197e-06/0.3714, allocations: 8.969 kB / 0.5501 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3714, allocations: 1.156 kB / 0.5501 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006675/0.372, allocations: 410.6 kB / 0.5505 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000217/0.3722, allocations: 94.7 kB / 0.5505 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.855e-05/0.3723, allocations: 3.031 kB / 0.5505 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/0.3726, allocations: 44.77 kB / 0.5506 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.913e-05/0.3727, allocations: 11.86 kB / 0.5506 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.3727, allocations: 7.734 kB / 0.5506 GB, free: 8.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005426/0.3733, allocations: 462 kB / 0.551 GB, free: 8.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3733, allocations: 1.062 kB / 0.551 GB, free: 8.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.3737, allocations: 107.4 kB / 0.5512 GB, free: 8.32 MB / 398.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.001293/0.375, allocations: 372 kB / 0.5515 GB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000591/0.3756, allocations: 164.8 kB / 0.5517 GB, free: 8.051 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3756, allocations: 5.375 kB / 0.5517 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.3758, allocations: 78.41 kB / 0.5517 GB, free: 8.012 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007809/0.3766, allocations: 141.2 kB / 0.5519 GB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.3782, allocations: 0.9154 MB / 0.5528 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005553/0.3787, allocations: 0.8894 MB / 0.5536 GB, free: 6.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.3789, allocations: 43.39 kB / 0.5537 GB, free: 6.516 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3789, allocations: 1.094 kB / 0.5537 GB, free: 6.516 MB / 398.1 MB Notification: Performance of Templates: time 0.0113/0.3902, allocations: 6.7 MB / 0.5602 GB, free: 1.895 MB / 398.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: 8.390930121997371] Failed to read output from testmodel.py, exit status != 0: 0.3992086290381849 0.412963212 0.052251946 Calling exit ...