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.000836/0.000836, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008122/0.0008122, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8537/0.8537, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 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.09425/0.09425, allocations: 24.12 MB / 284.1 MB, free: 5.477 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 421.3 MB, free: 5.262 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.857e-05, allocations: 2.281 kB / 421.3 MB, free: 5.258 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.005397/0.005426, allocations: 6.444 MB / 427.7 MB, free: 0.918 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003631/0.009057, allocations: 2.366 MB / 430.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000881/0.009937, allocations: 28 kB / 430.1 MB, free: 15.22 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004651/0.0104, allocations: 175.2 kB / 430.3 MB, free: 15.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006087/0.01101, allocations: 198.8 kB / 430.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007422/0.01175, allocations: 337.4 kB / 430.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007378/0.01249, allocations: 0.7422 MB / 431.6 MB, free: 14.4 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004009/0.01289, allocations: 240.9 kB / 431.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004002/0.01329, allocations: 348 kB / 432.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.01347, allocations: 170.2 kB / 432.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.102e-05/0.01352, allocations: 45.94 kB / 432.4 MB, free: 14.03 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.01368, allocations: 87.98 kB / 432.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.01381, allocations: 151.6 kB / 432.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.01393, allocations: 167.6 kB / 432.8 MB, free: 13.83 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000682/0.01461, allocations: 0.6402 MB / 433.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.01461, allocations: 1.25 kB / 433.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.01462, allocations: 0 / 433.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.809e-05/0.01463, allocations: 0 / 433.4 MB, free: 13.54 MB / 346.7 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.001188/0.01582, allocations: 0.947 MB / 434.3 MB, free: 12.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.01586, allocations: 11.05 kB / 434.4 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.01609, allocations: 103.2 kB / 434.5 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000584/0.01667, allocations: 432 kB / 434.9 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.0167, allocations: 28.47 kB / 434.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.01674, allocations: 35.19 kB / 434.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006636/0.0174, allocations: 0.8166 MB / 435.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.01741, allocations: 0 / 435.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.01744, allocations: 22.06 kB / 435.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.01745, allocations: 8.25 kB / 435.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000422/0.01787, allocations: 261 kB / 436 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.01911, allocations: 0.932 MB / 437 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/0.01953, allocations: 172.3 kB / 437.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.01966, allocations: 79.52 kB / 437.2 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.01968, allocations: 1.188 kB / 437.2 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.01971, allocations: 47.39 kB / 437.3 MB, free: 10.87 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.01971, allocations: 3.938 kB / 437.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005476/0.02025, allocations: 289.2 kB / 437.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.02038, allocations: 453.3 kB / 438 MB, free: 10.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005467/0.02092, allocations: 0.6414 MB / 438.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.02095, allocations: 33.17 kB / 438.7 MB, free: 9.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.02112, allocations: 318.7 kB / 439 MB, free: 9.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.02114, allocations: 40.38 kB / 439 MB, free: 9.453 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-05/0.02121, allocations: 58.84 kB / 439.1 MB, free: 9.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.02131, allocations: 358.1 kB / 439.4 MB, free: 9.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.02145, allocations: 68.53 kB / 439.5 MB, free: 9.031 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.02174, allocations: 0.5419 MB / 440 MB, free: 8.406 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.02201, allocations: 161.6 kB / 440.2 MB, free: 8.312 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.02201, allocations: 0 / 440.2 MB, free: 8.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003809/0.02239, allocations: 254 kB / 440.4 MB, free: 8.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.02241, allocations: 6.125 kB / 440.5 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.02241, allocations: 1.312 kB / 440.5 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.02243, allocations: 1.469 kB / 440.5 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.02255, allocations: 39.34 kB / 440.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.02256, allocations: 5.203 kB / 440.5 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.02275, allocations: 47.34 kB / 440.5 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.02276, allocations: 12.19 kB / 440.6 MB, free: 8.121 MB / 346.7 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.0001737/0.02294, allocations: 181.4 kB / 440.7 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.561e-05/0.02301, allocations: 63.52 kB / 440.8 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000322/0.02333, allocations: 183.2 kB / 441 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.02334, allocations: 1 kB / 441 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.02334, allocations: 5.125 kB / 441 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.02334, allocations: 1.281 kB / 441 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003646/0.02371, allocations: 356.1 kB / 441.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.02371, allocations: 0 / 441.3 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.691e-05/0.02381, allocations: 39.2 kB / 441.4 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.02381, allocations: 1.281 kB / 441.4 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.02383, allocations: 5.125 kB / 441.4 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.02383, allocations: 1.281 kB / 441.4 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.02383, allocations: 0 / 441.4 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.02423, allocations: 421 kB / 441.8 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.02437, allocations: 85.2 kB / 441.9 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.0244, allocations: 3.5 kB / 441.9 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.02457, allocations: 42.06 kB / 441.9 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.02461, allocations: 11.62 kB / 441.9 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.337e-06/0.02462, allocations: 11.03 kB / 441.9 MB, free: 7.109 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003687/0.02499, allocations: 461.7 kB / 442.4 MB, free: 6.859 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.02499, allocations: 0 / 442.4 MB, free: 6.859 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003003/0.02529, allocations: 107.2 kB / 442.5 MB, free: 6.828 MB / 346.7 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.0005892/0.02588, allocations: 388.4 kB / 442.9 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.02623, allocations: 160.8 kB / 443 MB, free: 6.57 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.02623, allocations: 1.156 kB / 443 MB, free: 6.57 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.02636, allocations: 82.31 kB / 443.1 MB, free: 6.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.02686, allocations: 148.5 kB / 443.3 MB, free: 6.453 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.02797, allocations: 0.922 MB / 444.2 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.02818, allocations: 289.7 kB / 444.5 MB, free: 5.645 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.956e-05/0.02828, allocations: 41.36 kB / 444.5 MB, free: 5.633 MB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02828, allocations: 0 / 444.5 MB, free: 5.633 MB / 346.7 MB Notification: Performance of Templates: time 0.008146/0.03642, allocations: 6.88 MB / 451.4 MB, free: 404 kB / 346.7 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.9336357014253736] Failed to read output from testmodel.py, exit status != 0: 0.04290423169732094 0.052295094 0.036000259 Calling exit ...