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.001186/0.001186, allocations: 108 kB / 15.61 MB, free: 152 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.001111/0.001111, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2647/0.2647, allocations: 31.16 MB / 321.6 MB, free: 4.438 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 59.91 kB / 389 MB, free: 2.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2413, allocations: 56.36 MB / 445.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.005713/0.2471, allocations: 6.968 MB / 452.4 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.2496, allocations: 2.165 MB / 454.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003492/0.2499, allocations: 19.97 kB / 454.6 MB, free: 27.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003308/0.2503, allocations: 159.3 kB / 454.7 MB, free: 27.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000333/0.2506, allocations: 141.6 kB / 454.9 MB, free: 27.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004996/0.2511, allocations: 328.8 kB / 455.2 MB, free: 27.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004619/0.2516, allocations: 0.7219 MB / 455.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003966/0.252, allocations: 353.3 kB / 456.2 MB, free: 26.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.2522, allocations: 231.3 kB / 456.5 MB, free: 26.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.2524, allocations: 246.8 kB / 456.7 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.481e-05/0.2524, allocations: 44.59 kB / 456.7 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.2526, allocations: 94.86 kB / 456.8 MB, free: 26.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.2527, allocations: 142.1 kB / 457 MB, free: 26.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.2529, allocations: 289.7 kB / 457.3 MB, free: 26.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004529/0.2533, allocations: 0.6187 MB / 457.9 MB, free: 26.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2533, allocations: 0 / 457.9 MB, free: 26.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2534, allocations: 0 / 457.9 MB, free: 26.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.2534, allocations: 3.938 kB / 457.9 MB, free: 26.06 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.001127/0.2545, allocations: 0.9958 MB / 458.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.2545, allocations: 9.594 kB / 458.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.607e-05/0.2546, allocations: 81.05 kB / 459 MB, free: 25.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.2549, allocations: 98.03 kB / 459.1 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004641/0.2553, allocations: 498.1 kB / 459.6 MB, free: 24.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.2554, allocations: 31.66 kB / 459.6 MB, free: 24.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.2554, allocations: 31.16 kB / 459.6 MB, free: 24.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006763/0.2561, allocations: 470.5 kB / 460.1 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.2561, allocations: 0 / 460.1 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.2562, allocations: 21.56 kB / 460.1 MB, free: 24.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.2562, allocations: 11.78 kB / 460.1 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.2569, allocations: 261.4 kB / 460.4 MB, free: 24.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.2584, allocations: 1.132 MB / 461.5 MB, free: 23.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006651/0.2591, allocations: 179 kB / 461.7 MB, free: 23.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.2593, allocations: 72.02 kB / 461.7 MB, free: 23.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.2594, allocations: 7.094 kB / 461.7 MB, free: 23.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.2594, allocations: 42.86 kB / 461.8 MB, free: 23.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.2594, allocations: 0 / 461.8 MB, free: 23.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008775/0.2603, allocations: 296.9 kB / 462.1 MB, free: 23.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.2604, allocations: 442.8 kB / 462.5 MB, free: 22.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006352/0.261, allocations: 0.6431 MB / 463.2 MB, free: 22.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.261, allocations: 32.05 kB / 463.2 MB, free: 22.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.2612, allocations: 311.3 kB / 463.5 MB, free: 22.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.2612, allocations: 34.08 kB / 463.5 MB, free: 22.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.108e-05/0.2613, allocations: 63.03 kB / 463.6 MB, free: 22.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.49e-05/0.2614, allocations: 355.2 kB / 463.9 MB, free: 22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.2617, allocations: 68.3 kB / 464 MB, free: 21.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003044/0.262, allocations: 200.3 kB / 464.2 MB, free: 21.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004636/0.2625, allocations: 158.7 kB / 464.3 MB, free: 21.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2625, allocations: 0 / 464.3 MB, free: 21.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006246/0.2631, allocations: 253.6 kB / 464.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.2631, allocations: 6.844 kB / 464.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2631, allocations: 1.094 kB / 464.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.2632, allocations: 5.75 kB / 464.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.2634, allocations: 38.11 kB / 464.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.2634, allocations: 1.625 kB / 464.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.2638, allocations: 48.73 kB / 464.7 MB, free: 21.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.2638, allocations: 9.188 kB / 464.7 MB, free: 21.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.0001931/0.264, allocations: 177.3 kB / 464.9 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.2641, allocations: 60.55 kB / 464.9 MB, free: 21.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005249/0.2647, allocations: 193.7 kB / 465.1 MB, free: 21.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2647, allocations: 4.938 kB / 465.1 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2647, allocations: 1.156 kB / 465.1 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.2647, allocations: 1.875 kB / 465.1 MB, free: 21.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005751/0.2653, allocations: 475.1 kB / 465.6 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2653, allocations: 1.469 kB / 465.6 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.2655, allocations: 30.86 kB / 465.6 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.2655, allocations: 1.406 kB / 465.6 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.2655, allocations: 10.67 kB / 465.6 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2656, allocations: 5.984 kB / 465.6 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2656, allocations: 0 / 465.6 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006445/0.2662, allocations: 405.9 kB / 466 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.2664, allocations: 172.1 kB / 466.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.309e-05/0.2665, allocations: 12.5 kB / 466.2 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003628/0.2668, allocations: 37.45 kB / 466.3 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.2669, allocations: 9.203 kB / 466.3 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.2669, allocations: 8.547 kB / 466.3 MB, free: 20.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004909/0.2674, allocations: 458.1 kB / 466.7 MB, free: 20.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2674, allocations: 0 / 466.7 MB, free: 20.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004207/0.2678, allocations: 104.3 kB / 466.8 MB, free: 20.38 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.001537/0.2694, allocations: 1.19 MB / 468 MB, free: 19.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006061/0.27, allocations: 176.2 kB / 468.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.27, allocations: 1.438 kB / 468.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.2703, allocations: 79.33 kB / 468.3 MB, free: 19.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008332/0.2711, allocations: 151 kB / 468.4 MB, free: 19.38 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.004876/0.276, allocations: 3.731 MB / 472.1 MB, free: 17.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.2764, allocations: 0.8845 MB / 473 MB, free: 16.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002527/0.2766, allocations: 61.75 kB / 473.1 MB, free: 16.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.2769, allocations: 201.2 kB / 473.3 MB, free: 16.27 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2769, allocations: 0 / 473.3 MB, free: 16.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2066/0.4835, allocations: 10.02 MB / 483.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.999, allocations: 1.062 kB / 483.3 MB, free: 12.9 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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1)