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.001035/0.001035, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005585/0.005585, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2683/0.2683, allocations: 31.19 MB / 322.6 MB, free: 4.961 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003106, allocations: 8 kB / 390.9 MB, free: 2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2413, allocations: 57.39 MB / 448.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007056/0.2484, allocations: 11.21 MB / 459.5 MB, free: 25.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004579/0.253, allocations: 3.047 MB / 462.5 MB, free: 23.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.2546, allocations: 66.69 kB / 462.6 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.2551, allocations: 136.1 kB / 462.7 MB, free: 23.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004425/0.2555, allocations: 103.3 kB / 462.8 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006495/0.2562, allocations: 277.6 kB / 463.1 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006447/0.2568, allocations: 0.6738 MB / 463.8 MB, free: 22.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004777/0.2573, allocations: 341.2 kB / 464.1 MB, free: 22.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.2575, allocations: 179.1 kB / 464.3 MB, free: 22.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.2577, allocations: 196.5 kB / 464.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.062e-05/0.2578, allocations: 12.69 kB / 464.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.2579, allocations: 60.22 kB / 464.5 MB, free: 22.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.737e-05/0.2581, allocations: 109.4 kB / 464.7 MB, free: 22.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001507/0.2582, allocations: 262.2 kB / 464.9 MB, free: 22.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004752/0.2587, allocations: 0.5722 MB / 465.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2587, allocations: 3.938 kB / 465.5 MB, free: 21.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2587, allocations: 0 / 465.5 MB, free: 21.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.2587, allocations: 0 / 465.5 MB, free: 21.94 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.00107/0.2598, allocations: 0.8946 MB / 466.4 MB, free: 21.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.2599, allocations: 9.625 kB / 466.4 MB, free: 21.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.89e-05/0.2599, allocations: 76 kB / 466.5 MB, free: 21.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.2602, allocations: 99.2 kB / 466.6 MB, free: 21.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004798/0.2607, allocations: 496 kB / 467 MB, free: 20.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/0.2607, allocations: 27.72 kB / 467.1 MB, free: 20.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.523e-05/0.2607, allocations: 36.28 kB / 467.1 MB, free: 20.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007053/0.2615, allocations: 478.8 kB / 467.6 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2615, allocations: 7.984 kB / 467.6 MB, free: 20.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.2615, allocations: 22.77 kB / 467.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.2615, allocations: 8.75 kB / 467.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006585/0.2622, allocations: 279.1 kB / 467.9 MB, free: 20.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.2637, allocations: 1.142 MB / 469 MB, free: 19.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006612/0.2644, allocations: 188.8 kB / 469.2 MB, free: 19.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000241/0.2646, allocations: 92.36 kB / 469.3 MB, free: 19.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.2647, allocations: 6.797 kB / 469.3 MB, free: 19.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.2647, allocations: 37.41 kB / 469.3 MB, free: 19.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.2647, allocations: 1.219 kB / 469.3 MB, free: 19.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008838/0.2656, allocations: 329.6 kB / 469.7 MB, free: 19.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.2657, allocations: 443.3 kB / 470.1 MB, free: 18.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006847/0.2664, allocations: 0.6392 MB / 470.7 MB, free: 18.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.2664, allocations: 32.77 kB / 470.8 MB, free: 18.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.2666, allocations: 318 kB / 471.1 MB, free: 18.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.2666, allocations: 35.33 kB / 471.1 MB, free: 18.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.404e-05/0.2666, allocations: 23.47 kB / 471.1 MB, free: 18.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.141e-05/0.2667, allocations: 358.1 kB / 471.5 MB, free: 17.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.267, allocations: 76.81 kB / 471.6 MB, free: 17.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.2673, allocations: 213.2 kB / 471.8 MB, free: 17.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004877/0.2678, allocations: 180.7 kB / 472 MB, free: 17.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2678, allocations: 3.938 kB / 472 MB, free: 17.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006269/0.2685, allocations: 263.2 kB / 472.2 MB, free: 17.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2685, allocations: 7.406 kB / 472.2 MB, free: 17.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.2685, allocations: 4.031 kB / 472.2 MB, free: 17.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.2685, allocations: 5.781 kB / 472.2 MB, free: 17.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002417/0.2688, allocations: 47.11 kB / 472.3 MB, free: 17.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.2688, allocations: 2.312 kB / 472.3 MB, free: 17.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.2691, allocations: 58.23 kB / 472.3 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.2691, allocations: 5.234 kB / 472.3 MB, free: 17.55 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.0001757/0.2693, allocations: 181.2 kB / 472.5 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.37e-05/0.2694, allocations: 61.16 kB / 472.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004737/0.2699, allocations: 205.7 kB / 472.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.2699, allocations: 1.969 kB / 472.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2699, allocations: 1.188 kB / 472.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2699, allocations: 1.812 kB / 472.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000515/0.2705, allocations: 475 kB / 473.2 MB, free: 16.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2705, allocations: 1.031 kB / 473.2 MB, free: 16.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.2707, allocations: 45.42 kB / 473.3 MB, free: 16.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2707, allocations: 0.9688 kB / 473.3 MB, free: 16.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.2707, allocations: 6.297 kB / 473.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2707, allocations: 1.031 kB / 473.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2707, allocations: 2.25 kB / 473.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005892/0.2713, allocations: 436.8 kB / 473.7 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.2715, allocations: 169.9 kB / 473.9 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.701e-05/0.2715, allocations: 10.09 kB / 473.9 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003758/0.2719, allocations: 45.73 kB / 473.9 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.315e-05/0.272, allocations: 16.19 kB / 474 MB, free: 16.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.272, allocations: 8.438 kB / 474 MB, free: 16.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004532/0.2724, allocations: 457.7 kB / 474.4 MB, free: 16.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2725, allocations: 3.938 kB / 474.4 MB, free: 16.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.2728, allocations: 112.8 kB / 474.5 MB, free: 16.29 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.001379/0.2742, allocations: 1.205 MB / 475.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005626/0.2748, allocations: 187.9 kB / 475.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2748, allocations: 0 / 475.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002541/0.2751, allocations: 93.83 kB / 476 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008273/0.2759, allocations: 124.5 kB / 476.1 MB, free: 15.32 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.004708/0.2806, allocations: 4.008 MB / 480.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.281, allocations: 0.8889 MB / 481 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002378/0.2812, allocations: 62.66 kB / 481.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.2814, allocations: 196.6 kB / 481.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2814, allocations: 0 / 481.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.672/2.953, allocations: 9.311 MB / 490.6 MB, free: 8.047 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/2.954, allocations: 241.7 kB / 490.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/4.911, allocations: 4 kB / 490.8 MB, free: 7.793 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)