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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002145/0.002145, allocations: 191.7 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1795/0.1795, allocations: 31.62 MB / 337.9 MB, free: 9.625 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-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002059/0.002059, allocations: 67.88 kB / 472.9 MB, free: 6.059 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3678, allocations: 59.53 MB / 0.5199 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007006/0.3748, allocations: 7.037 MB / 0.5268 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003877/0.3786, allocations: 2.27 MB / 0.529 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.3799, allocations: 29 kB / 0.529 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004917/0.3804, allocations: 169.8 kB / 0.5292 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005383/0.3809, allocations: 150.1 kB / 0.5293 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009075/0.3818, allocations: 362.1 kB / 0.5297 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008378/0.3826, allocations: 0.7203 MB / 0.5304 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004796/0.3831, allocations: 256.6 kB / 0.5306 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003325/0.3834, allocations: 261.1 kB / 0.5309 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.3837, allocations: 241.1 kB / 0.5311 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.133e-05/0.3838, allocations: 45.75 kB / 0.5312 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.384, allocations: 90.38 kB / 0.5312 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.3842, allocations: 147.5 kB / 0.5314 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.3844, allocations: 292.3 kB / 0.5317 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007934/0.3852, allocations: 0.6384 MB / 0.5323 GB, free: 188 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3852, allocations: 0 / 0.5323 GB, free: 188 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3852, allocations: 1.266 kB / 0.5323 GB, free: 188 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.3852, allocations: 0 / 0.5323 GB, free: 188 kB / 382.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.001749/0.3869, allocations: 0.9534 MB / 0.5332 GB, free: 15.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.387, allocations: 10.55 kB / 0.5332 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.3873, allocations: 103.9 kB / 0.5333 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008339/0.3882, allocations: 439.8 kB / 0.5337 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.3882, allocations: 29 kB / 0.5338 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.3883, allocations: 39.16 kB / 0.5338 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.3893, allocations: 464.8 kB / 0.5343 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3893, allocations: 0 / 0.5343 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-05/0.3893, allocations: 20.94 kB / 0.5343 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.3894, allocations: 9.562 kB / 0.5343 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008203/0.3902, allocations: 260 kB / 0.5345 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.3924, allocations: 1.069 MB / 0.5356 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007994/0.3932, allocations: 182.9 kB / 0.5358 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002704/0.3934, allocations: 72.48 kB / 0.5358 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.3935, allocations: 6.203 kB / 0.5358 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.3935, allocations: 39.42 kB / 0.5359 GB, free: 13.94 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.3935, allocations: 0 / 0.5359 GB, free: 13.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001083/0.3946, allocations: 306.6 kB / 0.5362 GB, free: 13.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002776/0.3949, allocations: 445.7 kB / 0.5366 GB, free: 13.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000882/0.3958, allocations: 0.6385 MB / 0.5372 GB, free: 13.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.3958, allocations: 28.48 kB / 0.5372 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.3961, allocations: 315.8 kB / 0.5375 GB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.3961, allocations: 44.12 kB / 0.5376 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.3962, allocations: 52.12 kB / 0.5376 GB, free: 12.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.3964, allocations: 357 kB / 0.538 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.3967, allocations: 75.09 kB / 0.538 GB, free: 12.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.3971, allocations: 190.3 kB / 0.5382 GB, free: 12.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005408/0.3977, allocations: 161.2 kB / 0.5384 GB, free: 12.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3977, allocations: 4.609 kB / 0.5384 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007534/0.3984, allocations: 246.1 kB / 0.5386 GB, free: 11.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.3985, allocations: 10.02 kB / 0.5386 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.3985, allocations: 1.281 kB / 0.5386 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.3985, allocations: 5.031 kB / 0.5386 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002827/0.3988, allocations: 47.23 kB / 0.5387 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.3988, allocations: 1.984 kB / 0.5387 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/0.3992, allocations: 43.78 kB / 0.5387 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.3992, allocations: 4.922 kB / 0.5387 GB, free: 11.94 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.0002859/0.3995, allocations: 180.4 kB / 0.5389 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.3996, allocations: 61.03 kB / 0.539 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005616/0.4002, allocations: 192.8 kB / 0.5391 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.4002, allocations: 5.734 kB / 0.5391 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.4002, allocations: 1.031 kB / 0.5391 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.4002, allocations: 1.703 kB / 0.5391 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007477/0.4009, allocations: 443.1 kB / 0.5396 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.4009, allocations: 0.9375 kB / 0.5396 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.4012, allocations: 39.27 kB / 0.5396 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.4012, allocations: 1.922 kB / 0.5396 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.4012, allocations: 1.875 kB / 0.5396 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.4012, allocations: 9.578 kB / 0.5396 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4012, allocations: 1.188 kB / 0.5396 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007595/0.402, allocations: 406 kB / 0.54 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.4022, allocations: 99.7 kB / 0.5401 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.805e-05/0.4023, allocations: 7.094 kB / 0.5401 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003877/0.4027, allocations: 42.77 kB / 0.5401 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.081e-05/0.4027, allocations: 8.656 kB / 0.5402 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.4028, allocations: 4.344 kB / 0.5402 GB, free: 11.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006626/0.4034, allocations: 466.1 kB / 0.5406 GB, free: 10.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4034, allocations: 0 / 0.5406 GB, free: 10.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004737/0.4039, allocations: 104.9 kB / 0.5407 GB, free: 10.82 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.001334/0.4052, allocations: 365 kB / 0.5411 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007229/0.4059, allocations: 169.2 kB / 0.5412 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4059, allocations: 1 kB / 0.5412 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000294/0.4062, allocations: 81.02 kB / 0.5413 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009178/0.4072, allocations: 144 kB / 0.5414 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.409, allocations: 0.8728 MB / 0.5423 GB, free: 9.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006452/0.4097, allocations: 0.8853 MB / 0.5431 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002635/0.4099, allocations: 65.89 kB / 0.5432 GB, free: 9.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.4101, allocations: 41.42 kB / 0.5432 GB, free: 9.258 MB / 398.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4101, allocations: 0 / 0.5432 GB, free: 9.258 MB / 398.1 MB Notification: Performance of Templates: time 0.01553/0.4256, allocations: 6.508 MB / 0.5496 GB, free: 6.32 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: 5.431927568279207] Failed to read output from testmodel.py, exit status != 0: 0.4346223324537277 0.45094461900000005 0.06231371300000001 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f8b4c4c17b0>