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.001672/0.001672, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.002002/0.002002, allocations: 215.9 kB / 22.99 MB, free: 4.945 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.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1775/0.1775, allocations: 31.55 MB / 344.7 MB, free: 3.77 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.002129/0.002129, allocations: 67.89 kB / 482 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3256, allocations: 60.72 MB / 0.53 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007791/0.3334, allocations: 6.439 MB / 0.5363 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004371/0.3378, allocations: 2.352 MB / 0.5386 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.3391, allocations: 28.41 kB / 0.5386 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007032/0.3398, allocations: 180.2 kB / 0.5388 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009329/0.3407, allocations: 189.4 kB / 0.5389 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.3418, allocations: 337.2 kB / 0.5393 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009825/0.3427, allocations: 0.7269 MB / 0.54 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005564/0.3433, allocations: 239.3 kB / 0.5402 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.3436, allocations: 255.5 kB / 0.5404 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.3439, allocations: 224.2 kB / 0.5407 GB, free: 356 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.344, allocations: 45.38 kB / 0.5407 GB, free: 356 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.3442, allocations: 83.34 kB / 0.5408 GB, free: 340 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.3444, allocations: 146.8 kB / 0.5409 GB, free: 224 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.3446, allocations: 228.8 kB / 0.5411 GB, free: 48 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.3456, allocations: 0.6522 MB / 0.5418 GB, free: 15.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3456, allocations: 0 / 0.5418 GB, free: 15.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3456, allocations: 0 / 0.5418 GB, free: 15.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.666e-05/0.3456, allocations: 1.188 kB / 0.5418 GB, free: 15.56 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.002475/0.3481, allocations: 0.9574 MB / 0.5427 GB, free: 14.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.3482, allocations: 11.06 kB / 0.5427 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005802/0.3488, allocations: 103.1 kB / 0.5428 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.3498, allocations: 446.2 kB / 0.5432 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.375e-05/0.3499, allocations: 28.12 kB / 0.5433 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.173e-05/0.35, allocations: 35.38 kB / 0.5433 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.3512, allocations: 0.8166 MB / 0.5441 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.3512, allocations: 3.984 kB / 0.5441 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.3513, allocations: 21.75 kB / 0.5441 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.3513, allocations: 8.094 kB / 0.5441 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007389/0.352, allocations: 257.3 kB / 0.5444 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.354, allocations: 0.9235 MB / 0.5453 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007516/0.3548, allocations: 171.4 kB / 0.5454 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.3551, allocations: 75.27 kB / 0.5455 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.3551, allocations: 2.594 kB / 0.5455 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.3551, allocations: 41.3 kB / 0.5456 GB, free: 12.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 2.384e-06/0.3551, allocations: 1.125 kB / 0.5456 GB, free: 12.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001035/0.3562, allocations: 301.5 kB / 0.5459 GB, free: 12.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002838/0.3565, allocations: 449 kB / 0.5463 GB, free: 11.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009593/0.3574, allocations: 0.6457 MB / 0.5469 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.3575, allocations: 32.11 kB / 0.5469 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/0.3578, allocations: 315.5 kB / 0.5472 GB, free: 11.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/0.3578, allocations: 40.45 kB / 0.5473 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.3579, allocations: 59.33 kB / 0.5473 GB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000217/0.3581, allocations: 359.4 kB / 0.5477 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.3584, allocations: 68.27 kB / 0.5477 GB, free: 10.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006213/0.359, allocations: 0.5419 MB / 0.5483 GB, free: 10.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005253/0.3596, allocations: 169.1 kB / 0.5484 GB, free: 9.938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3596, allocations: 0 / 0.5484 GB, free: 9.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007265/0.3603, allocations: 242.8 kB / 0.5487 GB, free: 9.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3603, allocations: 5.688 kB / 0.5487 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.3603, allocations: 0 / 0.5487 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.3603, allocations: 5.312 kB / 0.5487 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002593/0.3606, allocations: 52.05 kB / 0.5487 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3606, allocations: 5.406 kB / 0.5487 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003951/0.361, allocations: 40.16 kB / 0.5488 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.361, allocations: 7.844 kB / 0.5488 GB, free: 9.754 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.0002722/0.3613, allocations: 177 kB / 0.5489 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.3614, allocations: 60.38 kB / 0.549 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005468/0.362, allocations: 198.1 kB / 0.5492 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.362, allocations: 1.156 kB / 0.5492 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.362, allocations: 5.406 kB / 0.5492 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.362, allocations: 3.984 kB / 0.5492 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005905/0.3626, allocations: 348.4 kB / 0.5495 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.3626, allocations: 1.469 kB / 0.5495 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.3628, allocations: 37.64 kB / 0.5496 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.3628, allocations: 1.438 kB / 0.5496 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.3629, allocations: 5.438 kB / 0.5496 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3629, allocations: 1.281 kB / 0.5496 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3629, allocations: 1.219 kB / 0.5496 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007537/0.3636, allocations: 412.5 kB / 0.55 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/0.3639, allocations: 89.19 kB / 0.5501 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.74e-05/0.364, allocations: 19.39 kB / 0.5501 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003748/0.3644, allocations: 37.48 kB / 0.5501 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.307e-05/0.3644, allocations: 16.36 kB / 0.5501 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.3645, allocations: 2.188 kB / 0.5501 GB, free: 8.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006403/0.3651, allocations: 466.1 kB / 0.5506 GB, free: 8.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3651, allocations: 0 / 0.5506 GB, free: 8.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004856/0.3656, allocations: 102.4 kB / 0.5507 GB, free: 8.453 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.001459/0.367, allocations: 388.9 kB / 0.551 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.3677, allocations: 169.3 kB / 0.5512 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.3677, allocations: 1.031 kB / 0.5512 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002725/0.368, allocations: 73.41 kB / 0.5513 GB, free: 8.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009021/0.3689, allocations: 151.3 kB / 0.5514 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.3707, allocations: 0.92 MB / 0.5523 GB, free: 7.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.3711, allocations: 290.3 kB / 0.5526 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.3713, allocations: 47.83 kB / 0.5526 GB, free: 7.25 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3713, allocations: 0 / 0.5526 GB, free: 7.25 MB / 398.1 MB Notification: Performance of Templates: time 0.01393/0.3852, allocations: 6.882 MB / 0.5594 GB, free: 2.332 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.392596014775336] Failed to read output from testmodel.py, exit status != 0: 0.3947821771726012 0.41072437599999995 0.061774582 Calling exit ...