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.001571/0.001571, allocations: 78.02 kB / 19.76 MB, free: 1.902 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.001667/0.001667, allocations: 162 kB / 23.01 MB, free: 4.578 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.368/1.368, allocations: 177.2 MB / 203.4 MB, free: 9.27 MB / 190.1 MB " [Timeout remaining time 179] 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.1646/0.1646, allocations: 24.14 MB / 283.9 MB, free: 9.113 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.002077/0.002077, allocations: 63.91 kB / 421.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2973, allocations: 60.69 MB / 481.9 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008763/0.3061, allocations: 6.438 MB / 488.3 MB, free: 7.742 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004788/0.3109, allocations: 2.36 MB / 490.7 MB, free: 5.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001183/0.312, allocations: 27.75 kB / 490.7 MB, free: 5.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004903/0.3125, allocations: 170.5 kB / 490.8 MB, free: 5.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000621/0.3131, allocations: 198.7 kB / 491 MB, free: 5.297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007804/0.3139, allocations: 333.9 kB / 491.4 MB, free: 4.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007947/0.3147, allocations: 0.7342 MB / 492.1 MB, free: 4.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004276/0.3151, allocations: 235.7 kB / 492.3 MB, free: 4.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004569/0.3156, allocations: 370.5 kB / 492.7 MB, free: 3.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.3159, allocations: 222.4 kB / 492.9 MB, free: 3.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.667e-05/0.3159, allocations: 44 kB / 493 MB, free: 3.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.3161, allocations: 91.92 kB / 493 MB, free: 3.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.3163, allocations: 143.4 kB / 493.2 MB, free: 3.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002084/0.3165, allocations: 222.5 kB / 493.4 MB, free: 2.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007539/0.3172, allocations: 0.6609 MB / 494.1 MB, free: 2.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3172, allocations: 0 / 494.1 MB, free: 2.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3172, allocations: 0 / 494.1 MB, free: 2.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.3173, allocations: 0 / 494.1 MB, free: 2.266 MB / 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.00158/0.3188, allocations: 0.9515 MB / 495 MB, free: 1.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3189, allocations: 12.75 kB / 495 MB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002928/0.3192, allocations: 103.4 kB / 495.1 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008017/0.32, allocations: 452.2 kB / 495.6 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.32, allocations: 29 kB / 495.6 MB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.3201, allocations: 32 kB / 495.6 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.3211, allocations: 0.8138 MB / 496.4 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3211, allocations: 0 / 496.4 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.3212, allocations: 19.94 kB / 496.5 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.3212, allocations: 15.92 kB / 496.5 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007101/0.3219, allocations: 258.4 kB / 496.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.3237, allocations: 0.9203 MB / 497.6 MB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007789/0.3245, allocations: 169.1 kB / 497.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.3247, allocations: 77.66 kB / 497.9 MB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.3248, allocations: 7.938 kB / 497.9 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.3248, allocations: 42.56 kB / 497.9 MB, free: 14.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.3248, allocations: 0 / 497.9 MB, free: 14.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001003/0.3258, allocations: 301.3 kB / 498.2 MB, free: 13.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003144/0.3261, allocations: 444.9 kB / 498.7 MB, free: 13.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008233/0.327, allocations: 0.6488 MB / 499.3 MB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.509e-05/0.327, allocations: 33.7 kB / 499.3 MB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002884/0.3273, allocations: 324.5 kB / 499.7 MB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/0.3273, allocations: 35.7 kB / 499.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.3274, allocations: 57.61 kB / 499.8 MB, free: 12.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.3276, allocations: 358.8 kB / 0.4884 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002711/0.3279, allocations: 71.94 kB / 0.4885 GB, free: 11.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005661/0.3285, allocations: 0.5433 MB / 0.489 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004971/0.329, allocations: 154.7 kB / 0.4891 GB, free: 10.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.329, allocations: 0 / 0.4891 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006943/0.3297, allocations: 257.1 kB / 0.4894 GB, free: 10.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.3297, allocations: 4 kB / 0.4894 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.3297, allocations: 0 / 0.4894 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.3297, allocations: 4 kB / 0.4894 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.33, allocations: 39.95 kB / 0.4894 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.33, allocations: 3.938 kB / 0.4894 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.3303, allocations: 47.94 kB / 0.4895 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.3304, allocations: 15.92 kB / 0.4895 GB, free: 10.52 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.0002458/0.3306, allocations: 181.8 kB / 0.4897 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.3307, allocations: 59.62 kB / 0.4897 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000555/0.3313, allocations: 194.8 kB / 0.4899 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3313, allocations: 0 / 0.4899 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3313, allocations: 3.938 kB / 0.4899 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3313, allocations: 4 kB / 0.4899 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005189/0.3318, allocations: 357 kB / 0.4903 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3318, allocations: 4 kB / 0.4903 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.332, allocations: 27.97 kB / 0.4903 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.332, allocations: 0 / 0.4903 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.332, allocations: 7.984 kB / 0.4903 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.332, allocations: 0 / 0.4903 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.332, allocations: 0 / 0.4903 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000708/0.3327, allocations: 418.2 kB / 0.4907 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/0.333, allocations: 93.48 kB / 0.4908 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.465e-05/0.333, allocations: 4 kB / 0.4908 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.3334, allocations: 35.95 kB / 0.4908 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.3334, allocations: 15.92 kB / 0.4908 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3335, allocations: 7.984 kB / 0.4908 GB, free: 9.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005594/0.334, allocations: 467 kB / 0.4913 GB, free: 8.609 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.334, allocations: 4 kB / 0.4913 GB, free: 8.605 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004761/0.3345, allocations: 99.67 kB / 0.4914 GB, free: 8.508 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.001483/0.336, allocations: 387.1 kB / 0.4918 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006372/0.3366, allocations: 163.8 kB / 0.4919 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.3366, allocations: 0 / 0.4919 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.3369, allocations: 79.88 kB / 0.492 GB, free: 8.035 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008157/0.3377, allocations: 144.3 kB / 0.4921 GB, free: 7.902 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.3394, allocations: 0.8872 MB / 0.493 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.3397, allocations: 292.1 kB / 0.4933 GB, free: 6.676 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002204/0.3399, allocations: 63.47 kB / 0.4933 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.34, allocations: 44.48 kB / 0.4934 GB, free: 6.57 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.34, allocations: 0 / 0.4934 GB, free: 6.57 MB / 398.1 MB Notification: Performance of Templates: time 0.0143/0.3543, allocations: 7.268 MB / 0.5005 GB, free: 15.48 MB / 414.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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.633878734894097] Failed to read output from testmodel.py, exit status != 0: 0.3627019450068474 0.37727588199999995 0.05686472499999994 Calling exit ...