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.00155/0.00155, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001765/0.001765, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.318/1.318, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2555/0.2555, allocations: 31.12 MB / 321.2 MB, free: 4.477 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 63.91 kB / 388.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2138, allocations: 56.36 MB / 444.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007674/0.2215, allocations: 11.77 MB / 456.6 MB, free: 25.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003666/0.2252, allocations: 3.072 MB / 459.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007558/0.2259, allocations: 74.47 kB / 459.8 MB, free: 23.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003731/0.2263, allocations: 135.3 kB / 459.9 MB, free: 23.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.2267, allocations: 104.7 kB / 460 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005208/0.2272, allocations: 281.6 kB / 460.3 MB, free: 22.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004918/0.2277, allocations: 0.7262 MB / 461 MB, free: 22.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.2282, allocations: 353.1 kB / 461.4 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.2284, allocations: 233.6 kB / 461.6 MB, free: 22.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.2285, allocations: 251.5 kB / 461.8 MB, free: 22.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.477e-05/0.2286, allocations: 45.28 kB / 461.9 MB, free: 22.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.2287, allocations: 90.72 kB / 462 MB, free: 22.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.2289, allocations: 147.8 kB / 462.1 MB, free: 22.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.229, allocations: 288.4 kB / 462.4 MB, free: 21.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004348/0.2294, allocations: 0.6115 MB / 463 MB, free: 21.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2295, allocations: 3.938 kB / 463 MB, free: 21.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2295, allocations: 2.25 kB / 463 MB, free: 21.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.2295, allocations: 0 / 463 MB, free: 21.52 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.001206/0.2307, allocations: 0.9971 MB / 464 MB, free: 20.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.2307, allocations: 8.938 kB / 464 MB, free: 20.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.984e-05/0.2308, allocations: 81.08 kB / 464.1 MB, free: 20.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.2311, allocations: 94.36 kB / 464.2 MB, free: 20.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.2316, allocations: 493 kB / 464.7 MB, free: 20.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.2316, allocations: 27.91 kB / 464.7 MB, free: 20.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.701e-05/0.2317, allocations: 35.25 kB / 464.7 MB, free: 20.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000716/0.2324, allocations: 475.2 kB / 465.2 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.2324, allocations: 0 / 465.2 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.802e-05/0.2325, allocations: 20.47 kB / 465.2 MB, free: 19.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2325, allocations: 9.188 kB / 465.2 MB, free: 19.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006599/0.2331, allocations: 263.2 kB / 465.5 MB, free: 19.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.2347, allocations: 1.125 MB / 466.6 MB, free: 19.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006861/0.2354, allocations: 179.8 kB / 466.8 MB, free: 19.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.2356, allocations: 81.78 kB / 466.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.2356, allocations: 2.188 kB / 466.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2357, allocations: 34.97 kB / 466.9 MB, free: 19.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 2.194e-06/0.2357, allocations: 3.984 kB / 466.9 MB, free: 19.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008724/0.2366, allocations: 300.3 kB / 467.2 MB, free: 18.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.493e-05/0.2366, allocations: 446.7 kB / 467.6 MB, free: 18.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006664/0.2373, allocations: 0.6397 MB / 468.3 MB, free: 18.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.2373, allocations: 32.3 kB / 468.3 MB, free: 18.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.2375, allocations: 306.7 kB / 468.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.2375, allocations: 51.22 kB / 468.6 MB, free: 17.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.417e-05/0.2376, allocations: 60.97 kB / 468.7 MB, free: 17.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.734e-05/0.2377, allocations: 356.7 kB / 469.1 MB, free: 17.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.238, allocations: 71.14 kB / 469.1 MB, free: 17.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.2383, allocations: 195 kB / 469.3 MB, free: 17.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.2388, allocations: 157.2 kB / 469.5 MB, free: 17.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2388, allocations: 0 / 469.5 MB, free: 17.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006216/0.2394, allocations: 246.4 kB / 469.7 MB, free: 17.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2395, allocations: 6.438 kB / 469.7 MB, free: 17.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2395, allocations: 4.688 kB / 469.7 MB, free: 17.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2395, allocations: 4.969 kB / 469.7 MB, free: 17.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.2398, allocations: 38.98 kB / 469.8 MB, free: 17.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2398, allocations: 1.156 kB / 469.8 MB, free: 17.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.2401, allocations: 44.7 kB / 469.8 MB, free: 17.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.887e-05/0.2402, allocations: 4.75 kB / 469.8 MB, free: 17.07 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.000173/0.2403, allocations: 185.7 kB / 470 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.966e-05/0.2404, allocations: 60.44 kB / 470.1 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004746/0.2409, allocations: 188.5 kB / 470.2 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2409, allocations: 2.062 kB / 470.2 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.2409, allocations: 1.156 kB / 470.2 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2409, allocations: 0.75 kB / 470.2 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005082/0.2415, allocations: 479.7 kB / 470.7 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.2415, allocations: 1.844 kB / 470.7 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.2417, allocations: 36 kB / 470.7 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2417, allocations: 1.219 kB / 470.7 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.2417, allocations: 6.547 kB / 470.8 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2417, allocations: 1.25 kB / 470.8 MB, free: 16.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2417, allocations: 4.641 kB / 470.8 MB, free: 16.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/0.2423, allocations: 406.1 kB / 471.2 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.2425, allocations: 167.1 kB / 471.3 MB, free: 16.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.2426, allocations: 8.203 kB / 471.3 MB, free: 16.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003758/0.243, allocations: 41.94 kB / 471.4 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.243, allocations: 13.28 kB / 471.4 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.2431, allocations: 6.891 kB / 471.4 MB, free: 16.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004776/0.2435, allocations: 458.2 kB / 471.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2435, allocations: 0 / 471.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004106/0.244, allocations: 104.8 kB / 471.9 MB, free: 15.83 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.001419/0.2454, allocations: 1.196 MB / 473.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005885/0.246, allocations: 172.5 kB / 473.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.246, allocations: 1.156 kB / 473.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002639/0.2463, allocations: 88.23 kB / 473.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008326/0.2471, allocations: 136.5 kB / 473.5 MB, free: 14.84 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.00471/0.2518, allocations: 3.946 MB / 477.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.2522, allocations: 0.886 MB / 478.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002428/0.2524, allocations: 61.7 kB / 478.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/0.2526, allocations: 196.8 kB / 478.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2526, allocations: 1.281 kB / 478.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.782/5.034, allocations: 9.797 MB / 488.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/5.034, allocations: 247.3 kB / 488.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/6.959, allocations: 0 / 488.6 MB, free: 7.566 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)