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.001247/0.001247, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001338/0.001338, allocations: 212.4 kB / 22.25 MB, free: 4.859 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 MB, free: 7.801 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.1755/0.1755, allocations: 31.54 MB / 344 MB, free: 3.789 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.001975/0.001975, allocations: 75.88 kB / 481.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3531, allocations: 60.71 MB / 0.5292 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.009271/0.3624, allocations: 6.435 MB / 0.5355 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004457/0.3668, allocations: 2.359 MB / 0.5378 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.3681, allocations: 29 kB / 0.5379 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005442/0.3687, allocations: 171.1 kB / 0.538 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006677/0.3693, allocations: 190.4 kB / 0.5382 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008483/0.3702, allocations: 341.3 kB / 0.5385 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006397/0.3708, allocations: 0.725 MB / 0.5392 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003809/0.3712, allocations: 238.4 kB / 0.5395 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.3714, allocations: 265 kB / 0.5397 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.3716, allocations: 215.5 kB / 0.5399 GB, free: 452 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.2e-05/0.3717, allocations: 44.66 kB / 0.54 GB, free: 452 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.3719, allocations: 88.7 kB / 0.54 GB, free: 432 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.372, allocations: 143 kB / 0.5402 GB, free: 320 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.3721, allocations: 232 kB / 0.5404 GB, free: 140 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007659/0.3729, allocations: 0.6518 MB / 0.541 GB, free: 15.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3729, allocations: 0 / 0.541 GB, free: 15.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3729, allocations: 1.375 kB / 0.541 GB, free: 15.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3729, allocations: 0 / 0.541 GB, free: 15.65 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.00155/0.3744, allocations: 0.955 MB / 0.542 GB, free: 14.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.3745, allocations: 12.94 kB / 0.542 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.3748, allocations: 103.7 kB / 0.5421 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007864/0.3756, allocations: 446.6 kB / 0.5425 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.731e-05/0.3756, allocations: 29.25 kB / 0.5425 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.3756, allocations: 30.03 kB / 0.5426 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.3767, allocations: 0.8181 MB / 0.5434 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.3767, allocations: 0 / 0.5434 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.385e-05/0.3768, allocations: 21.19 kB / 0.5434 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.3768, allocations: 16.12 kB / 0.5434 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006851/0.3775, allocations: 250 kB / 0.5436 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.3792, allocations: 0.9302 MB / 0.5446 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007133/0.38, allocations: 175.4 kB / 0.5447 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/0.3802, allocations: 75.66 kB / 0.5448 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.3802, allocations: 9.641 kB / 0.5448 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.3803, allocations: 34.34 kB / 0.5448 GB, free: 12.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.3803, allocations: 1.406 kB / 0.5448 GB, free: 12.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009316/0.3812, allocations: 305.7 kB / 0.5451 GB, free: 12.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002599/0.3815, allocations: 445.2 kB / 0.5455 GB, free: 11.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000829/0.3823, allocations: 0.6454 MB / 0.5462 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.3823, allocations: 27.11 kB / 0.5462 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.3826, allocations: 320.8 kB / 0.5465 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.3826, allocations: 43.7 kB / 0.5466 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3827, allocations: 54.83 kB / 0.5466 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.3829, allocations: 359.6 kB / 0.5469 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.3832, allocations: 77.41 kB / 0.547 GB, free: 10.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005563/0.3837, allocations: 0.5392 MB / 0.5475 GB, free: 10.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000472/0.3842, allocations: 157.4 kB / 0.5477 GB, free: 10.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3842, allocations: 0 / 0.5477 GB, free: 10.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006356/0.3848, allocations: 246.2 kB / 0.5479 GB, free: 9.891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.3848, allocations: 5.781 kB / 0.5479 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3849, allocations: 5.281 kB / 0.5479 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3849, allocations: 1.188 kB / 0.5479 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.3851, allocations: 44.33 kB / 0.548 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.3851, allocations: 5.406 kB / 0.548 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.3855, allocations: 46.59 kB / 0.548 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.3855, allocations: 8.781 kB / 0.548 GB, free: 9.84 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.0002298/0.3857, allocations: 176.3 kB / 0.5482 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.3858, allocations: 69.27 kB / 0.5483 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004996/0.3863, allocations: 190.1 kB / 0.5485 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3863, allocations: 5.547 kB / 0.5485 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.3863, allocations: 3.938 kB / 0.5485 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3863, allocations: 1.438 kB / 0.5485 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005105/0.3868, allocations: 352.3 kB / 0.5488 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3868, allocations: 0 / 0.5488 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.387, allocations: 34.59 kB / 0.5488 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.387, allocations: 1.344 kB / 0.5488 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.387, allocations: 1.5 kB / 0.5488 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.387, allocations: 5.281 kB / 0.5488 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.387, allocations: 1.438 kB / 0.5488 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007242/0.3878, allocations: 412 kB / 0.5492 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.388, allocations: 105.4 kB / 0.5493 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.176e-05/0.3881, allocations: 3.656 kB / 0.5493 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003515/0.3884, allocations: 37.95 kB / 0.5494 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.3885, allocations: 11.62 kB / 0.5494 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.3885, allocations: 7.562 kB / 0.5494 GB, free: 8.816 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005873/0.3891, allocations: 461.4 kB / 0.5498 GB, free: 8.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3891, allocations: 0 / 0.5498 GB, free: 8.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004996/0.3896, allocations: 107 kB / 0.5499 GB, free: 8.539 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.001519/0.3911, allocations: 388.6 kB / 0.5503 GB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006666/0.3918, allocations: 172.7 kB / 0.5505 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3918, allocations: 2.188 kB / 0.5505 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.3921, allocations: 77.97 kB / 0.5506 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008261/0.3929, allocations: 138.7 kB / 0.5507 GB, free: 8.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.3946, allocations: 0.884 MB / 0.5516 GB, free: 7.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.395, allocations: 293.7 kB / 0.5518 GB, free: 7.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002324/0.3952, allocations: 62.02 kB / 0.5519 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.3953, allocations: 42.2 kB / 0.5519 GB, free: 7.348 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3954, allocations: 1.125 kB / 0.5519 GB, free: 7.348 MB / 398.1 MB Notification: Performance of Templates: time 0.015/0.4103, allocations: 7.724 MB / 0.5595 GB, free: 1.562 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: 4.936376506462693] Failed to read output from testmodel.py, exit status != 0: 0.4190980438143015 0.435683076 0.059469934 Calling exit ...