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: "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 201.4 kB / 16.14 MB, free: 6.648 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.207/1.207, allocations: 222.9 MB / 239.8 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2467/0.2467, allocations: 31.12 MB / 321.1 MB, free: 4.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.89 kB / 388.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2181, allocations: 56.36 MB / 444.7 MB, free: 34.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007289/0.2254, allocations: 11.78 MB / 456.5 MB, free: 25.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003873/0.2293, allocations: 3.065 MB / 459.5 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.2303, allocations: 76.69 kB / 459.6 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003616/0.2307, allocations: 131.7 kB / 459.7 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.231, allocations: 104.2 kB / 459.8 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005036/0.2316, allocations: 280.4 kB / 460.1 MB, free: 23.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004391/0.232, allocations: 0.6794 MB / 460.8 MB, free: 22.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003761/0.2324, allocations: 355.1 kB / 461.1 MB, free: 22.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.2326, allocations: 214.3 kB / 461.3 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.2327, allocations: 233.8 kB / 461.6 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.77e-05/0.2328, allocations: 26.25 kB / 461.6 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.2329, allocations: 65.64 kB / 461.7 MB, free: 22.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.233, allocations: 126.6 kB / 461.8 MB, free: 22.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.2332, allocations: 276.3 kB / 462 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003716/0.2335, allocations: 0.587 MB / 462.6 MB, free: 21.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2335, allocations: 2.469 kB / 462.6 MB, free: 21.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2335, allocations: 0 / 462.6 MB, free: 21.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2336, allocations: 0 / 462.6 MB, free: 21.76 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.001138/0.2347, allocations: 0.998 MB / 463.6 MB, free: 21.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2347, allocations: 9.75 kB / 463.6 MB, free: 21.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.089e-05/0.2348, allocations: 80.28 kB / 463.7 MB, free: 20.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002346/0.235, allocations: 97.52 kB / 463.8 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.2355, allocations: 496.9 kB / 464.3 MB, free: 20.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.2356, allocations: 27.81 kB / 464.3 MB, free: 20.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/0.2356, allocations: 35.03 kB / 464.4 MB, free: 20.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006845/0.2363, allocations: 467.5 kB / 464.8 MB, free: 20.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2363, allocations: 4 kB / 464.8 MB, free: 20.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.2364, allocations: 25.62 kB / 464.8 MB, free: 20.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.2364, allocations: 8.906 kB / 464.9 MB, free: 20.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006295/0.237, allocations: 257.9 kB / 465.1 MB, free: 20.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.2385, allocations: 1.128 MB / 466.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006476/0.2392, allocations: 175.8 kB / 466.4 MB, free: 19.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.2394, allocations: 78.44 kB / 466.5 MB, free: 19.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.2394, allocations: 6.781 kB / 466.5 MB, free: 19.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/0.2394, allocations: 43 kB / 466.5 MB, free: 19.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.2394, allocations: 0 / 466.5 MB, free: 19.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008118/0.2403, allocations: 301.5 kB / 466.8 MB, free: 19.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.2403, allocations: 446.6 kB / 467.3 MB, free: 18.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.241, allocations: 0.6385 MB / 467.9 MB, free: 18.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.241, allocations: 31.89 kB / 467.9 MB, free: 18.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.2412, allocations: 311.4 kB / 468.2 MB, free: 18.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.2412, allocations: 40.47 kB / 468.3 MB, free: 18.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.893e-05/0.2413, allocations: 55.06 kB / 468.3 MB, free: 18.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.532e-05/0.2414, allocations: 356.6 kB / 468.7 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.2416, allocations: 71.61 kB / 468.7 MB, free: 17.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/0.2419, allocations: 200.9 kB / 468.9 MB, free: 17.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.2424, allocations: 153.2 kB / 469.1 MB, free: 17.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2424, allocations: 1.219 kB / 469.1 MB, free: 17.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005844/0.243, allocations: 245.6 kB / 469.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.243, allocations: 6.641 kB / 469.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.243, allocations: 0 / 469.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.243, allocations: 6.141 kB / 469.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.2433, allocations: 37.94 kB / 469.4 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.2433, allocations: 5.984 kB / 469.4 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.2436, allocations: 52.55 kB / 469.4 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.2436, allocations: 10.05 kB / 469.5 MB, free: 17.29 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.0001618/0.2438, allocations: 177.6 kB / 469.6 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.381e-05/0.2439, allocations: 63.27 kB / 469.7 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004508/0.2443, allocations: 200.4 kB / 469.9 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2444, allocations: 2.031 kB / 469.9 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2444, allocations: 0.9062 kB / 469.9 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2444, allocations: 1.672 kB / 469.9 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004943/0.2449, allocations: 471.8 kB / 470.3 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2449, allocations: 0 / 470.3 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.2451, allocations: 32.59 kB / 470.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2451, allocations: 2.094 kB / 470.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.2451, allocations: 9.719 kB / 470.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2451, allocations: 1.734 kB / 470.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2451, allocations: 0 / 470.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005682/0.2457, allocations: 410.1 kB / 470.8 MB, free: 16.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.2459, allocations: 168.3 kB / 471 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.999e-05/0.2459, allocations: 11.05 kB / 471 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003399/0.2463, allocations: 34.36 kB / 471 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/0.2463, allocations: 13.58 kB / 471 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2464, allocations: 3.703 kB / 471 MB, free: 16.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004388/0.2468, allocations: 458.6 kB / 471.5 MB, free: 16.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2468, allocations: 4 kB / 471.5 MB, free: 16.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.2472, allocations: 112 kB / 471.6 MB, free: 16.05 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.001316/0.2485, allocations: 1.184 MB / 472.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005293/0.2491, allocations: 171.7 kB / 472.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.2491, allocations: 1.062 kB / 472.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002467/0.2493, allocations: 79.17 kB / 473 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007546/0.2501, allocations: 140.2 kB / 473.1 MB, free: 15.07 MB / 350.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004419/0.2545, allocations: 3.946 MB / 477.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.2548, allocations: 0.8897 MB / 478 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002169/0.255, allocations: 64.83 kB / 478 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.2552, allocations: 197.1 kB / 478.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2552, allocations: 0 / 478.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.761/7.017, allocations: 9.499 MB / 487.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/7.017, allocations: 239 kB / 488 MB, free: 8.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.103/9.12, allocations: 0 / 488 MB, free: 8.098 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_LookupFunctions_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)