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.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-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_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.001137/0.001137, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001364/0.001364, allocations: 189.2 kB / 16.25 MB, free: 6.621 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.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2839/0.2839, allocations: 31.16 MB / 321.2 MB, free: 4.574 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.89 kB / 388.5 MB, free: 2.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2242, allocations: 56.36 MB / 444.9 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007417/0.2317, allocations: 11.78 MB / 456.7 MB, free: 25.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003928/0.2356, allocations: 3.059 MB / 459.7 MB, free: 23.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008508/0.2365, allocations: 76.44 kB / 459.8 MB, free: 23.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003616/0.2368, allocations: 138.4 kB / 460 MB, free: 23.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003168/0.2372, allocations: 103.1 kB / 460.1 MB, free: 23.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005217/0.2377, allocations: 284.1 kB / 460.3 MB, free: 23.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004628/0.2382, allocations: 0.7205 MB / 461 MB, free: 22.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003889/0.2386, allocations: 364 kB / 461.4 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.2388, allocations: 233.4 kB / 461.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.2389, allocations: 252.7 kB / 461.9 MB, free: 22.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.983e-05/0.239, allocations: 45.31 kB / 461.9 MB, free: 22.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.2391, allocations: 87.48 kB / 462 MB, free: 22.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.984e-05/0.2392, allocations: 145 kB / 462.2 MB, free: 22.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.2394, allocations: 287.2 kB / 462.4 MB, free: 22.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004282/0.2398, allocations: 0.6159 MB / 463 MB, free: 21.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2398, allocations: 0 / 463 MB, free: 21.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2398, allocations: 0 / 463 MB, free: 21.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.2398, allocations: 1.094 kB / 463 MB, free: 21.75 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.001129/0.241, allocations: 0.9939 MB / 464 MB, free: 21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.241, allocations: 10.22 kB / 464.1 MB, free: 21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.095e-05/0.2411, allocations: 88.14 kB / 464.1 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002394/0.2413, allocations: 95.28 kB / 464.2 MB, free: 20.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.2418, allocations: 495.8 kB / 464.7 MB, free: 20.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.2418, allocations: 28.45 kB / 464.7 MB, free: 20.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.2419, allocations: 39.28 kB / 464.8 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006665/0.2426, allocations: 477.1 kB / 465.2 MB, free: 20.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.2426, allocations: 0 / 465.2 MB, free: 20.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.781e-05/0.2426, allocations: 21.44 kB / 465.3 MB, free: 20.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.2426, allocations: 7.875 kB / 465.3 MB, free: 20.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006159/0.2433, allocations: 255.3 kB / 465.5 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.2447, allocations: 1.131 MB / 466.7 MB, free: 19.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006662/0.2454, allocations: 177.7 kB / 466.8 MB, free: 19.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.2456, allocations: 84.42 kB / 466.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.2457, allocations: 1.406 kB / 466.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.2457, allocations: 39.09 kB / 467 MB, free: 19.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.2457, allocations: 0 / 467 MB, free: 19.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008171/0.2465, allocations: 301.5 kB / 467.2 MB, free: 19.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.2466, allocations: 441.8 kB / 467.7 MB, free: 18.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006345/0.2472, allocations: 0.6389 MB / 468.3 MB, free: 18.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.2473, allocations: 32.52 kB / 468.3 MB, free: 18.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.2474, allocations: 307.4 kB / 468.6 MB, free: 18.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.2475, allocations: 43.39 kB / 468.7 MB, free: 18.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-05/0.2476, allocations: 55.69 kB / 468.7 MB, free: 18.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.65e-05/0.2477, allocations: 358.1 kB / 469.1 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.2479, allocations: 70.64 kB / 469.2 MB, free: 17.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.2482, allocations: 195 kB / 469.4 MB, free: 17.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.2486, allocations: 157.3 kB / 469.5 MB, free: 17.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2486, allocations: 1.156 kB / 469.5 MB, free: 17.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005594/0.2492, allocations: 246.6 kB / 469.8 MB, free: 17.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.2492, allocations: 8.312 kB / 469.8 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2492, allocations: 0.875 kB / 469.8 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.2492, allocations: 6.875 kB / 469.8 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00025/0.2495, allocations: 41.45 kB / 469.8 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2495, allocations: 2.344 kB / 469.8 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.2498, allocations: 43.45 kB / 469.9 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.2499, allocations: 5.422 kB / 469.9 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.0001658/0.25, allocations: 181.3 kB / 470 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.362e-05/0.2501, allocations: 60 kB / 470.1 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004449/0.2506, allocations: 197.1 kB / 470.3 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.2506, allocations: 7.078 kB / 470.3 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2506, allocations: 0 / 470.3 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.2506, allocations: 5.734 kB / 470.3 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005086/0.2511, allocations: 471.4 kB / 470.8 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2511, allocations: 1.188 kB / 470.8 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.2513, allocations: 31.61 kB / 470.8 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.2513, allocations: 2.047 kB / 470.8 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.2514, allocations: 6.141 kB / 470.8 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2514, allocations: 1.188 kB / 470.8 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2514, allocations: 1.531 kB / 470.8 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005724/0.252, allocations: 413.3 kB / 471.2 MB, free: 16.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.2521, allocations: 168.5 kB / 471.4 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.985e-05/0.2522, allocations: 7.094 kB / 471.4 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003401/0.2525, allocations: 41.62 kB / 471.4 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.714e-05/0.2526, allocations: 13.56 kB / 471.4 MB, free: 16.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.2526, allocations: 3.188 kB / 471.4 MB, free: 16.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004619/0.2531, allocations: 459.5 kB / 471.9 MB, free: 16.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2531, allocations: 0 / 471.9 MB, free: 16.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004041/0.2535, allocations: 103.8 kB / 472 MB, free: 16.06 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.001399/0.2549, allocations: 1.196 MB / 473.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005475/0.2555, allocations: 172.7 kB / 473.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2555, allocations: 1.281 kB / 473.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.2557, allocations: 87.41 kB / 473.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007805/0.2565, allocations: 131 kB / 473.6 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.004707/0.2612, allocations: 3.958 MB / 477.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.2616, allocations: 0.888 MB / 478.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002445/0.2619, allocations: 62.5 kB / 478.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002233/0.2621, allocations: 198.1 kB / 478.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2621, allocations: 0 / 478.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.394/2.656, allocations: 9.81 MB / 488.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/2.656, allocations: 246.2 kB / 488.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.565/5.222, allocations: 0 / 488.7 MB, free: 7.578 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)