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.001194/0.001194, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001226/0.001227, allocations: 191.9 kB / 16.14 MB, free: 6.711 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.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2327/0.2327, allocations: 31.17 MB / 321.1 MB, free: 4.809 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001215, allocations: 63.91 kB / 388.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2059, allocations: 56.37 MB / 444.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007075/0.2131, allocations: 11.78 MB / 456.5 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003675/0.2168, allocations: 3.067 MB / 459.6 MB, free: 23.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.2178, allocations: 76.16 kB / 459.6 MB, free: 23.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003769/0.2182, allocations: 133.5 kB / 459.8 MB, free: 23.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003064/0.2185, allocations: 100.4 kB / 459.9 MB, free: 23.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005237/0.219, allocations: 280.3 kB / 460.1 MB, free: 23.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004711/0.2195, allocations: 0.6758 MB / 460.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.2199, allocations: 344.3 kB / 461.2 MB, free: 22.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.2201, allocations: 216.1 kB / 461.4 MB, free: 22.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.2202, allocations: 235.7 kB / 461.6 MB, free: 22.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.592e-05/0.2203, allocations: 25.94 kB / 461.6 MB, free: 22.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.2204, allocations: 65.95 kB / 461.7 MB, free: 22.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.2205, allocations: 131.6 kB / 461.8 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.2207, allocations: 268 kB / 462.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004445/0.2211, allocations: 0.5902 MB / 462.7 MB, free: 22.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2211, allocations: 0 / 462.7 MB, free: 22.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2211, allocations: 0.9688 kB / 462.7 MB, free: 22.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.2212, allocations: 0 / 462.7 MB, free: 22.16 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.001196/0.2224, allocations: 0.9998 MB / 463.7 MB, free: 21.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2224, allocations: 10.53 kB / 463.7 MB, free: 21.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.379e-05/0.2225, allocations: 78.91 kB / 463.8 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002504/0.2227, allocations: 99.88 kB / 463.9 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.2232, allocations: 495.8 kB / 464.3 MB, free: 20.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.2233, allocations: 28 kB / 464.4 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.2233, allocations: 39.38 kB / 464.4 MB, free: 20.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006635/0.224, allocations: 467.3 kB / 464.9 MB, free: 20.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.224, allocations: 3.938 kB / 464.9 MB, free: 20.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.2241, allocations: 20.88 kB / 464.9 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.2241, allocations: 8.625 kB / 464.9 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006072/0.2247, allocations: 260.3 kB / 465.1 MB, free: 20.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.2262, allocations: 1.134 MB / 466.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/0.2269, allocations: 169.3 kB / 466.4 MB, free: 19.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.2271, allocations: 92.52 kB / 466.5 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2271, allocations: 5.844 kB / 466.5 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.664e-05/0.2272, allocations: 39.25 kB / 466.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.2272, allocations: 0 / 466.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008162/0.228, allocations: 300.2 kB / 466.9 MB, free: 19.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.2281, allocations: 442.9 kB / 467.3 MB, free: 19.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006301/0.2287, allocations: 0.6401 MB / 467.9 MB, free: 18.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.2287, allocations: 32.67 kB / 468 MB, free: 18.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.2289, allocations: 307 kB / 468.3 MB, free: 18.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.2289, allocations: 42.97 kB / 468.3 MB, free: 18.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.86e-05/0.229, allocations: 55.06 kB / 468.4 MB, free: 18.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.968e-05/0.2291, allocations: 358.6 kB / 468.7 MB, free: 18.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.2293, allocations: 70.86 kB / 468.8 MB, free: 18.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.2296, allocations: 196.1 kB / 469 MB, free: 17.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004216/0.23, allocations: 157.1 kB / 469.1 MB, free: 17.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2301, allocations: 0.9844 kB / 469.1 MB, free: 17.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005661/0.2306, allocations: 242.6 kB / 469.4 MB, free: 17.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.2306, allocations: 9.422 kB / 469.4 MB, free: 17.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2307, allocations: 0.9688 kB / 469.4 MB, free: 17.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.2307, allocations: 5.062 kB / 469.4 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.2309, allocations: 39.02 kB / 469.4 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2309, allocations: 5.75 kB / 469.4 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000315/0.2312, allocations: 44.27 kB / 469.5 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.2313, allocations: 4.922 kB / 469.5 MB, free: 17.7 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.0001593/0.2314, allocations: 185.3 kB / 469.7 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.984e-05/0.2315, allocations: 59.75 kB / 469.7 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004286/0.232, allocations: 198 kB / 469.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.232, allocations: 1.281 kB / 469.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.232, allocations: 1.516 kB / 469.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.232, allocations: 0.6562 kB / 469.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004991/0.2325, allocations: 475.9 kB / 470.4 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2325, allocations: 1.219 kB / 470.4 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.2327, allocations: 35.58 kB / 470.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2327, allocations: 1.125 kB / 470.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.2327, allocations: 10.17 kB / 470.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2327, allocations: 1.641 kB / 470.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2328, allocations: 1.031 kB / 470.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005456/0.2333, allocations: 406.2 kB / 470.8 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001527/0.2335, allocations: 167.2 kB / 471 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.2335, allocations: 8.453 kB / 471 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/0.2339, allocations: 42.47 kB / 471 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-05/0.2339, allocations: 7.781 kB / 471.1 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.2339, allocations: 9.062 kB / 471.1 MB, free: 16.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004732/0.2344, allocations: 457.6 kB / 471.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2344, allocations: 0 / 471.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000385/0.2348, allocations: 108.6 kB / 471.6 MB, free: 16.46 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.001307/0.2361, allocations: 1.198 MB / 472.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.2367, allocations: 171.9 kB / 473 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2367, allocations: 2.094 kB / 473 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002325/0.2369, allocations: 81.41 kB / 473.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007693/0.2377, allocations: 129 kB / 473.2 MB, free: 15.46 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.004414/0.2421, allocations: 3.943 MB / 477.1 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.2424, allocations: 0.8902 MB / 478 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002345/0.2427, allocations: 65.75 kB / 478.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.2429, allocations: 192.4 kB / 478.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2429, allocations: 0 / 478.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1763/0.4191, allocations: 9.517 MB / 487.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/0.4194, allocations: 248.5 kB / 488 MB, free: 8.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.226, allocations: 0 / 488 MB, free: 8.188 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)