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.0009303/0.0009303, 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.0009041/0.0009042, allocations: 194.1 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.141/1.141, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2237/0.2237, allocations: 31.12 MB / 321.5 MB, free: 4.332 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 67.89 kB / 389 MB, free: 2.367 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2017, allocations: 56.35 MB / 445.4 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.005038/0.2068, allocations: 6.989 MB / 452.3 MB, free: 29.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.2089, allocations: 2.153 MB / 454.5 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000286/0.2092, allocations: 28.94 kB / 454.5 MB, free: 27.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.2095, allocations: 161 kB / 454.7 MB, free: 27.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.2098, allocations: 139.4 kB / 454.8 MB, free: 27.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004421/0.2103, allocations: 330 kB / 455.1 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.2107, allocations: 0.7118 MB / 455.8 MB, free: 27.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003417/0.211, allocations: 365.1 kB / 456.2 MB, free: 26.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.2112, allocations: 224.9 kB / 456.4 MB, free: 26.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.2113, allocations: 251.4 kB / 456.7 MB, free: 26.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.2114, allocations: 44.53 kB / 456.7 MB, free: 26.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.2115, allocations: 87.41 kB / 456.8 MB, free: 26.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.861e-05/0.2116, allocations: 148.2 kB / 456.9 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.2117, allocations: 286.9 kB / 457.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003681/0.2121, allocations: 0.6152 MB / 457.8 MB, free: 26.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2121, allocations: 5.281 kB / 457.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2121, allocations: 0 / 457.8 MB, free: 26.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.2121, allocations: 0 / 457.8 MB, free: 26.1 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.001007/0.2131, allocations: 1.001 MB / 458.8 MB, free: 25.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.2132, allocations: 9.875 kB / 458.9 MB, free: 25.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.354e-05/0.2132, allocations: 81.53 kB / 458.9 MB, free: 25.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.2135, allocations: 98.31 kB / 459 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.2139, allocations: 488.9 kB / 459.5 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.2139, allocations: 30.78 kB / 459.5 MB, free: 24.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.69e-05/0.214, allocations: 32.88 kB / 459.6 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006099/0.2146, allocations: 477.1 kB / 460 MB, free: 24.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2146, allocations: 0 / 460 MB, free: 24.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.2146, allocations: 21.53 kB / 460.1 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.2147, allocations: 9.031 kB / 460.1 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005743/0.2152, allocations: 256.3 kB / 460.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.2165, allocations: 1.131 MB / 461.4 MB, free: 23.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/0.2171, allocations: 173.7 kB / 461.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.2173, allocations: 78.77 kB / 461.7 MB, free: 23.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.2174, allocations: 10.72 kB / 461.7 MB, free: 23.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.2174, allocations: 38.81 kB / 461.7 MB, free: 23.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.2174, allocations: 0 / 461.7 MB, free: 23.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007819/0.2182, allocations: 301.6 kB / 462 MB, free: 23.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/0.2183, allocations: 447.4 kB / 462.5 MB, free: 22.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005651/0.2188, allocations: 0.6396 MB / 463.1 MB, free: 22.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.2188, allocations: 32.05 kB / 463.1 MB, free: 22.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.219, allocations: 309.9 kB / 463.4 MB, free: 22.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.219, allocations: 39.2 kB / 463.5 MB, free: 22.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.923e-05/0.2191, allocations: 55.3 kB / 463.5 MB, free: 22.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.386e-05/0.2192, allocations: 361.6 kB / 463.9 MB, free: 22.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.2194, allocations: 67.59 kB / 464 MB, free: 22.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.2197, allocations: 192.7 kB / 464.1 MB, free: 21.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004177/0.2201, allocations: 164.5 kB / 464.3 MB, free: 21.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2201, allocations: 3.938 kB / 464.3 MB, free: 21.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005474/0.2207, allocations: 245 kB / 464.5 MB, free: 21.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.2207, allocations: 4.906 kB / 464.6 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2207, allocations: 1.375 kB / 464.6 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.2207, allocations: 6 kB / 464.6 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.2209, allocations: 45.64 kB / 464.6 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.2209, allocations: 2.094 kB / 464.6 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.2212, allocations: 43.23 kB / 464.7 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.2213, allocations: 9.906 kB / 464.7 MB, free: 21.64 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.0001621/0.2214, allocations: 178.3 kB / 464.8 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.996e-05/0.2215, allocations: 60.34 kB / 464.9 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004343/0.222, allocations: 197.2 kB / 465.1 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.222, allocations: 1.125 kB / 465.1 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.222, allocations: 1.156 kB / 465.1 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.222, allocations: 0.6562 kB / 465.1 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004687/0.2225, allocations: 477.2 kB / 465.6 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2225, allocations: 0 / 465.6 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.2227, allocations: 40.33 kB / 465.6 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2227, allocations: 1.438 kB / 465.6 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.2227, allocations: 5.891 kB / 465.6 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2227, allocations: 1.969 kB / 465.6 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2227, allocations: 0 / 465.6 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005351/0.2233, allocations: 410.4 kB / 466 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.2234, allocations: 168.2 kB / 466.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.74e-05/0.2235, allocations: 11.36 kB / 466.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000318/0.2238, allocations: 35 kB / 466.2 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.2239, allocations: 15.38 kB / 466.2 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.2239, allocations: 4.438 kB / 466.2 MB, free: 20.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004108/0.2243, allocations: 462.4 kB / 466.7 MB, free: 20.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2243, allocations: 0 / 466.7 MB, free: 20.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003549/0.2246, allocations: 108.2 kB / 466.8 MB, free: 20.41 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.001271/0.2259, allocations: 1.189 MB / 468 MB, free: 19.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005328/0.2265, allocations: 172.9 kB / 468.1 MB, free: 19.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2265, allocations: 1.344 kB / 468.1 MB, free: 19.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002314/0.2267, allocations: 82.72 kB / 468.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006768/0.2274, allocations: 134.6 kB / 468.4 MB, free: 19.43 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.004087/0.2315, allocations: 3.729 MB / 472.1 MB, free: 17.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.2318, allocations: 0.8848 MB / 473 MB, free: 16.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002013/0.232, allocations: 69.92 kB / 473 MB, free: 16.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.2322, allocations: 198.8 kB / 473.2 MB, free: 16.32 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2322, allocations: 3.938 kB / 473.2 MB, free: 16.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3071/0.5393, allocations: 10.01 MB / 483.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.586/7.125, allocations: 1.344 kB / 483.3 MB, free: 12.91 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)