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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) 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.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=20000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 196 kB / 16.79 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2796/0.2796, allocations: 31.12 MB / 321.7 MB, free: 4.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 63.91 kB / 388.9 MB, free: 3.047 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2308, allocations: 56.36 MB / 445.2 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008707/0.2395, allocations: 11.78 MB / 457 MB, free: 25.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004718/0.2443, allocations: 3.064 MB / 460.1 MB, free: 23.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001593/0.2459, allocations: 77.81 kB / 460.2 MB, free: 23.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004992/0.2464, allocations: 136.1 kB / 460.3 MB, free: 23.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.2468, allocations: 105.3 kB / 460.4 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006713/0.2475, allocations: 279.6 kB / 460.7 MB, free: 23.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004619/0.2479, allocations: 0.6738 MB / 461.3 MB, free: 22.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004839/0.2484, allocations: 353 kB / 461.7 MB, free: 22.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.2486, allocations: 212.4 kB / 461.9 MB, free: 22.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.2488, allocations: 239.4 kB / 462.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.2489, allocations: 25.94 kB / 462.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.249, allocations: 62.77 kB / 462.2 MB, free: 22.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.2492, allocations: 128.3 kB / 462.3 MB, free: 22.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.2493, allocations: 275.3 kB / 462.6 MB, free: 22.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.2497, allocations: 447.6 kB / 463 MB, free: 22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2497, allocations: 1.062 kB / 463 MB, free: 22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2497, allocations: 0.5156 kB / 463 MB, free: 22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.2497, allocations: 4 kB / 463 MB, free: 22 MB / 350.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.001337/0.2511, allocations: 0.9938 MB / 464 MB, free: 21.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.2511, allocations: 13.56 kB / 464.1 MB, free: 21.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.2514, allocations: 98.17 kB / 464.1 MB, free: 21.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005651/0.2519, allocations: 493.5 kB / 464.6 MB, free: 20.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.252, allocations: 29.12 kB / 464.7 MB, free: 20.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.252, allocations: 39.25 kB / 464.7 MB, free: 20.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007797/0.2528, allocations: 466.7 kB / 465.2 MB, free: 20.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2528, allocations: 0 / 465.2 MB, free: 20.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.264e-05/0.2529, allocations: 20.69 kB / 465.2 MB, free: 20.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.2529, allocations: 13.03 kB / 465.2 MB, free: 20.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007029/0.2536, allocations: 264.2 kB / 465.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.2553, allocations: 1.128 MB / 466.6 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007132/0.256, allocations: 178.5 kB / 466.7 MB, free: 19.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.2562, allocations: 75.05 kB / 466.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.2563, allocations: 11.59 kB / 466.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.508e-05/0.2563, allocations: 33.88 kB / 466.9 MB, free: 19.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.2563, allocations: 0 / 466.9 MB, free: 19.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008752/0.2572, allocations: 304.5 kB / 467.2 MB, free: 19.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.2573, allocations: 443.7 kB / 467.6 MB, free: 18.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006979/0.258, allocations: 0.6387 MB / 468.2 MB, free: 18.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.2581, allocations: 32.08 kB / 468.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.2583, allocations: 308 kB / 468.6 MB, free: 18.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.2583, allocations: 42.38 kB / 468.6 MB, free: 18.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.2584, allocations: 59.75 kB / 468.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.109e-05/0.2585, allocations: 358 kB / 469 MB, free: 17.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.2588, allocations: 67.14 kB / 469.1 MB, free: 17.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.2591, allocations: 201.1 kB / 469.3 MB, free: 17.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005275/0.2596, allocations: 153 kB / 469.4 MB, free: 17.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2597, allocations: 0 / 469.4 MB, free: 17.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006736/0.2603, allocations: 246.8 kB / 469.7 MB, free: 17.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2604, allocations: 11.69 kB / 469.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.2604, allocations: 0 / 469.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.2604, allocations: 5.375 kB / 469.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.2607, allocations: 38.69 kB / 469.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2607, allocations: 5.031 kB / 469.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.261, allocations: 47.7 kB / 469.8 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.2611, allocations: 6.156 kB / 469.8 MB, free: 17.61 MB / 350.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.000176/0.2613, allocations: 181.6 kB / 470 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.2614, allocations: 59.47 kB / 470 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005381/0.2619, allocations: 189.2 kB / 470.2 MB, free: 17.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2619, allocations: 5.094 kB / 470.2 MB, free: 17.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.2619, allocations: 5.891 kB / 470.2 MB, free: 17.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2619, allocations: 6.109 kB / 470.2 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005198/0.2625, allocations: 474.3 kB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2625, allocations: 1.188 kB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.2627, allocations: 31.92 kB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2627, allocations: 1.125 kB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2628, allocations: 3.562 kB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2628, allocations: 5 kB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2628, allocations: 0.6094 kB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006014/0.2634, allocations: 401.8 kB / 471.1 MB, free: 16.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.2635, allocations: 171.8 kB / 471.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.2636, allocations: 3.438 kB / 471.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004007/0.264, allocations: 51.33 kB / 471.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.2641, allocations: 7.906 kB / 471.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.2641, allocations: 3.672 kB / 471.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004712/0.2646, allocations: 462.7 kB / 471.8 MB, free: 16.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2646, allocations: 1.094 kB / 471.8 MB, free: 16.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004429/0.265, allocations: 107.9 kB / 471.9 MB, free: 16.37 MB / 350.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.0007615/0.2658, allocations: 361.5 kB / 472.3 MB, free: 16.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005621/0.2664, allocations: 166.6 kB / 472.4 MB, free: 16.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2664, allocations: 1.094 kB / 472.4 MB, free: 16.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.2667, allocations: 79.75 kB / 472.5 MB, free: 16.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007716/0.2674, allocations: 128.4 kB / 472.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.2688, allocations: 1.145 MB / 473.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.2691, allocations: 0.8893 MB / 474.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.2693, allocations: 43.06 kB / 474.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2693, allocations: 0 / 474.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of Templates: time 0.009605/0.2789, allocations: 6.552 MB / 481.3 MB, free: 12.91 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.makefile (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)