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.0007828/0.0007828, allocations: 94.83 kB / 15.36 MB, free: 0.7344 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.00488/0.00488, allocations: 176 kB / 16.27 MB, free: 6.684 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.322/1.322, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2518/0.2518, allocations: 31.16 MB / 322.6 MB, free: 4.816 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002854, allocations: 8 kB / 390.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2331, allocations: 57.4 MB / 448.2 MB, free: 34.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007515/0.2407, allocations: 11.2 MB / 459.4 MB, free: 25.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004123/0.2448, allocations: 3.059 MB / 462.5 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006761/0.2455, allocations: 70.03 kB / 462.6 MB, free: 23.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003944/0.2459, allocations: 131.8 kB / 462.7 MB, free: 23.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003364/0.2463, allocations: 103.4 kB / 462.8 MB, free: 23.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.2468, allocations: 278.4 kB / 463.1 MB, free: 23.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000471/0.2473, allocations: 0.6683 MB / 463.7 MB, free: 22.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004084/0.2477, allocations: 342.3 kB / 464.1 MB, free: 22.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.2479, allocations: 179.3 kB / 464.2 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.248, allocations: 202.9 kB / 464.4 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.616e-05/0.2481, allocations: 13.47 kB / 464.5 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.2482, allocations: 54.08 kB / 464.5 MB, free: 22.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.2484, allocations: 108.3 kB / 464.6 MB, free: 22.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.2485, allocations: 269.3 kB / 464.9 MB, free: 22.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.249, allocations: 0.5774 MB / 465.5 MB, free: 21.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.249, allocations: 0 / 465.5 MB, free: 21.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.249, allocations: 0 / 465.5 MB, free: 21.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.249, allocations: 0 / 465.5 MB, free: 21.81 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.001087/0.2501, allocations: 0.8801 MB / 466.3 MB, free: 21.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2501, allocations: 10.67 kB / 466.3 MB, free: 21.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.865e-05/0.2502, allocations: 79.84 kB / 466.4 MB, free: 21.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.2504, allocations: 94.86 kB / 466.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005034/0.251, allocations: 0.4895 MB / 467 MB, free: 20.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.251, allocations: 27.81 kB / 467 MB, free: 20.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.251, allocations: 34.66 kB / 467.1 MB, free: 20.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007187/0.2518, allocations: 476.8 kB / 467.5 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.2518, allocations: 4 kB / 467.5 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.2518, allocations: 24.75 kB / 467.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.2519, allocations: 8.906 kB / 467.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006641/0.2525, allocations: 283.1 kB / 467.8 MB, free: 20.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.254, allocations: 1.135 MB / 469 MB, free: 19.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006604/0.2547, allocations: 188.1 kB / 469.2 MB, free: 19.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.255, allocations: 94.38 kB / 469.3 MB, free: 19.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.255, allocations: 4.844 kB / 469.3 MB, free: 19.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.255, allocations: 42.22 kB / 469.3 MB, free: 19.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.255, allocations: 0.9688 kB / 469.3 MB, free: 19.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008748/0.2559, allocations: 338.4 kB / 469.6 MB, free: 19.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.782e-05/0.256, allocations: 446.2 kB / 470.1 MB, free: 18.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006549/0.2567, allocations: 0.6399 MB / 470.7 MB, free: 18.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.2567, allocations: 27.83 kB / 470.7 MB, free: 18.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.2569, allocations: 315.3 kB / 471 MB, free: 18.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.2569, allocations: 35.83 kB / 471.1 MB, free: 18.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.2569, allocations: 18.67 kB / 471.1 MB, free: 18.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.366e-05/0.257, allocations: 357.8 kB / 471.4 MB, free: 17.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002574/0.2573, allocations: 80.55 kB / 471.5 MB, free: 17.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.2576, allocations: 204.3 kB / 471.7 MB, free: 17.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004913/0.2581, allocations: 177.1 kB / 471.9 MB, free: 17.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2581, allocations: 1.125 kB / 471.9 MB, free: 17.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006181/0.2587, allocations: 265.8 kB / 472.2 MB, free: 17.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2587, allocations: 5.609 kB / 472.2 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2588, allocations: 5.438 kB / 472.2 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2588, allocations: 5.062 kB / 472.2 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002417/0.259, allocations: 48.17 kB / 472.2 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.259, allocations: 5.25 kB / 472.2 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003348/0.2594, allocations: 57.81 kB / 472.3 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.2594, allocations: 4.672 kB / 472.3 MB, free: 17.43 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.0001724/0.2596, allocations: 177.8 kB / 472.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.045e-05/0.2597, allocations: 59.12 kB / 472.5 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004642/0.2601, allocations: 208.5 kB / 472.7 MB, free: 17.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2602, allocations: 5.344 kB / 472.7 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2602, allocations: 1.031 kB / 472.7 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2602, allocations: 5.344 kB / 472.7 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004966/0.2607, allocations: 472 kB / 473.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2607, allocations: 0 / 473.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.2609, allocations: 40.94 kB / 473.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2609, allocations: 1.062 kB / 473.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.2609, allocations: 11.14 kB / 473.2 MB, free: 16.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2609, allocations: 1.766 kB / 473.3 MB, free: 16.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2609, allocations: 5.188 kB / 473.3 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005873/0.2615, allocations: 428.2 kB / 473.7 MB, free: 16.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.2617, allocations: 173.8 kB / 473.8 MB, free: 16.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.574e-05/0.2618, allocations: 8 kB / 473.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000354/0.2621, allocations: 48.17 kB / 473.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.2622, allocations: 12.53 kB / 473.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.2622, allocations: 4.047 kB / 473.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004623/0.2627, allocations: 462.1 kB / 474.4 MB, free: 16.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2627, allocations: 0.875 kB / 474.4 MB, free: 16.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003852/0.263, allocations: 108 kB / 474.5 MB, free: 16.18 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.001402/0.2645, allocations: 1.215 MB / 475.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005728/0.265, allocations: 190 kB / 475.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2651, allocations: 2.094 kB / 475.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002632/0.2653, allocations: 105.7 kB / 476 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007925/0.2661, allocations: 128.9 kB / 476.1 MB, free: 15.19 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.004632/0.2708, allocations: 3.997 MB / 480.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.2711, allocations: 0.8893 MB / 481 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002265/0.2713, allocations: 66.98 kB / 481.1 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.2715, allocations: 196.4 kB / 481.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2715, allocations: 0 / 481.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5269/0.7984, allocations: 9.289 MB / 490.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001448/0.7986, allocations: 238.7 kB / 490.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.612, allocations: 0 / 490.8 MB, free: 7.895 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)