Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.001356/0.001356, 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.001604/0.001604, allocations: 212.3 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.461/1.461, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1807/0.1807, allocations: 31.55 MB / 344 MB, free: 3.777 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_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.002136/0.002136, allocations: 67.89 kB / 481.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3349, allocations: 60.71 MB / 0.5292 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007853/0.3428, allocations: 6.447 MB / 0.5355 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003939/0.3467, allocations: 2.354 MB / 0.5378 GB, free: 1.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006753/0.3474, allocations: 30.03 kB / 0.5379 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004674/0.3479, allocations: 167.6 kB / 0.538 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005456/0.3484, allocations: 193.6 kB / 0.5382 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006763/0.3491, allocations: 343.6 kB / 0.5385 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.3497, allocations: 0.724 MB / 0.5392 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004038/0.3501, allocations: 242.2 kB / 0.5395 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.3504, allocations: 253.2 kB / 0.5397 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.3506, allocations: 223 kB / 0.5399 GB, free: 384 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.589e-05/0.3507, allocations: 48.81 kB / 0.54 GB, free: 380 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.3509, allocations: 84.06 kB / 0.5401 GB, free: 364 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.351, allocations: 150.8 kB / 0.5402 GB, free: 244 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.3512, allocations: 222.3 kB / 0.5404 GB, free: 76 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008304/0.352, allocations: 0.6627 MB / 0.5411 GB, free: 15.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.352, allocations: 0 / 0.5411 GB, free: 15.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.352, allocations: 0 / 0.5411 GB, free: 15.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.352, allocations: 1.375 kB / 0.5411 GB, free: 15.58 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.001609/0.3536, allocations: 0.9499 MB / 0.542 GB, free: 14.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3537, allocations: 10.34 kB / 0.542 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.354, allocations: 103.5 kB / 0.5421 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008153/0.3548, allocations: 442.5 kB / 0.5425 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/0.3548, allocations: 28.53 kB / 0.5425 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.3549, allocations: 38.25 kB / 0.5426 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.3559, allocations: 0.8144 MB / 0.5434 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.3559, allocations: 0 / 0.5434 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.356, allocations: 21.59 kB / 0.5434 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.356, allocations: 12.98 kB / 0.5434 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007222/0.3567, allocations: 256.1 kB / 0.5437 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.3585, allocations: 0.9227 MB / 0.5446 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006952/0.3592, allocations: 176.2 kB / 0.5447 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.3595, allocations: 74.73 kB / 0.5448 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.3595, allocations: 6.141 kB / 0.5448 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.3595, allocations: 39.12 kB / 0.5448 GB, free: 12.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.3595, allocations: 0 / 0.5448 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009446/0.3605, allocations: 297.8 kB / 0.5451 GB, free: 12.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002796/0.3608, allocations: 444.8 kB / 0.5455 GB, free: 11.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008189/0.3616, allocations: 0.6497 MB / 0.5462 GB, free: 11.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.3616, allocations: 32.45 kB / 0.5462 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000255/0.3619, allocations: 315.6 kB / 0.5465 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.301e-05/0.3619, allocations: 39.84 kB / 0.5466 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.362, allocations: 64.58 kB / 0.5466 GB, free: 11.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.3622, allocations: 357.8 kB / 0.547 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.3624, allocations: 68.8 kB / 0.547 GB, free: 10.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005749/0.363, allocations: 0.5412 MB / 0.5475 GB, free: 10.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006975/0.3637, allocations: 166 kB / 0.5477 GB, free: 9.961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3637, allocations: 0 / 0.5477 GB, free: 9.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001025/0.3647, allocations: 246.4 kB / 0.5479 GB, free: 9.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.3648, allocations: 5.531 kB / 0.5479 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3648, allocations: 1.469 kB / 0.5479 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.3648, allocations: 5.469 kB / 0.548 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.3652, allocations: 43.52 kB / 0.548 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.3652, allocations: 5.25 kB / 0.548 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.3657, allocations: 43.47 kB / 0.548 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.3657, allocations: 4.062 kB / 0.548 GB, free: 9.781 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.0003614/0.3661, allocations: 177.5 kB / 0.5482 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.3663, allocations: 67.86 kB / 0.5483 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007424/0.367, allocations: 190.3 kB / 0.5485 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.367, allocations: 1.219 kB / 0.5485 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.367, allocations: 13.58 kB / 0.5485 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.367, allocations: 0 / 0.5485 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006772/0.3677, allocations: 355.9 kB / 0.5488 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3677, allocations: 1.188 kB / 0.5488 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.3679, allocations: 34.47 kB / 0.5488 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3679, allocations: 1.281 kB / 0.5489 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.3679, allocations: 9.094 kB / 0.5489 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.368, allocations: 1.188 kB / 0.5489 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.368, allocations: 1.344 kB / 0.5489 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007088/0.3687, allocations: 409.2 kB / 0.5493 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/0.3689, allocations: 93.8 kB / 0.5493 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.152e-05/0.369, allocations: 10.81 kB / 0.5494 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/0.3693, allocations: 33.58 kB / 0.5494 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.285e-05/0.3694, allocations: 16.33 kB / 0.5494 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.3694, allocations: 3.438 kB / 0.5494 GB, free: 8.758 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005892/0.37, allocations: 464.2 kB / 0.5498 GB, free: 8.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.37, allocations: 1.125 kB / 0.5498 GB, free: 8.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004418/0.3704, allocations: 106.5 kB / 0.5499 GB, free: 8.477 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.00142/0.3719, allocations: 389.1 kB / 0.5503 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006255/0.3725, allocations: 165 kB / 0.5505 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3725, allocations: 1.062 kB / 0.5505 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002691/0.3727, allocations: 74.25 kB / 0.5505 GB, free: 8.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008177/0.3736, allocations: 152 kB / 0.5507 GB, free: 8.094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.3752, allocations: 0.8876 MB / 0.5516 GB, free: 7.504 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.3755, allocations: 286 kB / 0.5518 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002264/0.3757, allocations: 66.19 kB / 0.5519 GB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.3758, allocations: 41.92 kB / 0.5519 GB, free: 7.281 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3758, allocations: 1.344 kB / 0.5519 GB, free: 7.281 MB / 398.1 MB Notification: Performance of Templates: time 0.01437/0.3902, allocations: 7.719 MB / 0.5595 GB, free: 1.566 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.sim & ./BusinessSimulation_BusinessSimulation.Examples.LookupFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.001067537814379] Failed to read output from testmodel.py, exit status != 0: 0.39878804981708527 0.412620769 0.057651684 Calling exit ...