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.001225/0.001225, allocations: 108 kB / 15.6 MB, free: 132 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.001306/0.001306, allocations: 195 kB / 16.53 MB, free: 6.391 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.338/1.338, 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-main/package.mo): time 0.308/0.308, allocations: 31.16 MB / 321.6 MB, free: 4.402 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.91 kB / 389 MB, free: 2.469 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2795, allocations: 56.35 MB / 445.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.006789/0.2863, allocations: 6.982 MB / 452.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003336/0.2897, allocations: 2.161 MB / 454.5 MB, free: 27.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007981/0.2905, allocations: 19.44 kB / 454.6 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004856/0.291, allocations: 168.4 kB / 454.7 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004571/0.2915, allocations: 135.5 kB / 454.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007303/0.2923, allocations: 331.1 kB / 455.2 MB, free: 27.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005146/0.2928, allocations: 0.7132 MB / 455.9 MB, free: 27.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004413/0.2932, allocations: 360.2 kB / 456.2 MB, free: 26.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.2934, allocations: 229.5 kB / 456.5 MB, free: 26.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.2936, allocations: 245.1 kB / 456.7 MB, free: 26.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.583e-05/0.2937, allocations: 45.41 kB / 456.7 MB, free: 26.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.2939, allocations: 94.84 kB / 456.8 MB, free: 26.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.294, allocations: 147 kB / 457 MB, free: 26.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.2942, allocations: 286.8 kB / 457.3 MB, free: 26.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.2946, allocations: 0.6181 MB / 457.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2947, allocations: 0 / 457.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2947, allocations: 7.938 kB / 457.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.2947, allocations: 0 / 457.9 MB, free: 26.04 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.001197/0.2959, allocations: 0.9919 MB / 458.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.2959, allocations: 9.125 kB / 458.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.97e-05/0.296, allocations: 83.05 kB / 459 MB, free: 25.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.2963, allocations: 93.75 kB / 459.1 MB, free: 25.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004844/0.2968, allocations: 497.5 kB / 459.6 MB, free: 24.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.2968, allocations: 31.38 kB / 459.6 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.2969, allocations: 35.34 kB / 459.6 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007473/0.2976, allocations: 469.4 kB / 460.1 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.2977, allocations: 1.438 kB / 460.1 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.2977, allocations: 20.31 kB / 460.1 MB, free: 24.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.2977, allocations: 9.531 kB / 460.1 MB, free: 24.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000655/0.2984, allocations: 265 kB / 460.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.2999, allocations: 1.128 MB / 461.5 MB, free: 23.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006781/0.3006, allocations: 176.6 kB / 461.7 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/0.3009, allocations: 77.31 kB / 461.7 MB, free: 23.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.3009, allocations: 5.188 kB / 461.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.3009, allocations: 38.34 kB / 461.8 MB, free: 23.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/0.3009, allocations: 0 / 461.8 MB, free: 23.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009622/0.3019, allocations: 304.7 kB / 462.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.302, allocations: 443.3 kB / 462.5 MB, free: 22.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007165/0.3028, allocations: 0.6401 MB / 463.2 MB, free: 22.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.3028, allocations: 32.45 kB / 463.2 MB, free: 22.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.303, allocations: 309.8 kB / 463.5 MB, free: 22.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.303, allocations: 39.17 kB / 463.5 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-05/0.3031, allocations: 55.66 kB / 463.6 MB, free: 22.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.536e-05/0.3032, allocations: 358.5 kB / 463.9 MB, free: 21.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/0.3034, allocations: 67.78 kB / 464 MB, free: 21.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003008/0.3038, allocations: 194.7 kB / 464.2 MB, free: 21.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.3043, allocations: 157.3 kB / 464.3 MB, free: 21.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3043, allocations: 1.031 kB / 464.3 MB, free: 21.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006359/0.3049, allocations: 254.8 kB / 464.6 MB, free: 21.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3049, allocations: 5.344 kB / 464.6 MB, free: 21.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.3049, allocations: 0.7031 kB / 464.6 MB, free: 21.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.305, allocations: 9.734 kB / 464.6 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.3052, allocations: 39.88 kB / 464.6 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.3052, allocations: 1.094 kB / 464.6 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000346/0.3056, allocations: 47.59 kB / 464.7 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.3056, allocations: 4.781 kB / 464.7 MB, free: 21.59 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.0001996/0.3058, allocations: 182.4 kB / 464.9 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.986e-05/0.3059, allocations: 59.41 kB / 464.9 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005065/0.3065, allocations: 197.5 kB / 465.1 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3065, allocations: 2.797 kB / 465.1 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3065, allocations: 4 kB / 465.1 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3065, allocations: 2.031 kB / 465.1 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005981/0.3071, allocations: 471.2 kB / 465.6 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3071, allocations: 1.062 kB / 465.6 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/0.3073, allocations: 39.25 kB / 465.6 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3073, allocations: 2.047 kB / 465.6 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.3074, allocations: 6.688 kB / 465.6 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.3074, allocations: 2.109 kB / 465.6 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3074, allocations: 0 / 465.6 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006121/0.308, allocations: 409.8 kB / 466 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002016/0.3082, allocations: 171.6 kB / 466.2 MB, free: 20.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.225e-05/0.3083, allocations: 8.406 kB / 466.2 MB, free: 20.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.3086, allocations: 41.2 kB / 466.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.3087, allocations: 9.625 kB / 466.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.3087, allocations: 7.359 kB / 466.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004951/0.3092, allocations: 458.1 kB / 466.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3092, allocations: 0 / 466.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004115/0.3096, allocations: 104 kB / 466.8 MB, free: 20.35 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.001486/0.3111, allocations: 1.195 MB / 468 MB, free: 19.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.3118, allocations: 176.3 kB / 468.2 MB, free: 19.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3118, allocations: 2.156 kB / 468.2 MB, free: 19.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.3121, allocations: 83.73 kB / 468.3 MB, free: 19.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008986/0.313, allocations: 146.2 kB / 468.4 MB, free: 19.35 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.005141/0.3182, allocations: 3.73 MB / 472.1 MB, free: 17.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.3186, allocations: 0.8858 MB / 473 MB, free: 16.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002669/0.3189, allocations: 64.69 kB / 473.1 MB, free: 16.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002079/0.3191, allocations: 197.6 kB / 473.3 MB, free: 16.24 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3191, allocations: 5.375 kB / 473.3 MB, free: 16.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2002/0.5193, allocations: 10.01 MB / 483.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.685/8.204, allocations: 5.188 kB / 483.3 MB, free: 12.91 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)