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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 216.8 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.176/0.176, allocations: 31.54 MB / 344.8 MB, free: 3.984 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 59.91 kB / 481.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3301, allocations: 60.71 MB / 0.5296 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008475/0.3386, allocations: 7.129 MB / 0.5366 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005239/0.3438, allocations: 2.374 MB / 0.5389 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001652/0.3455, allocations: 37.22 kB / 0.5389 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006667/0.3462, allocations: 166.9 kB / 0.5391 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009139/0.3471, allocations: 185.1 kB / 0.5393 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.3482, allocations: 371.3 kB / 0.5396 GB, free: 328 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.3494, allocations: 0.7265 MB / 0.5403 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005343/0.35, allocations: 250.3 kB / 0.5406 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003876/0.3503, allocations: 259.5 kB / 0.5408 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.3506, allocations: 240.6 kB / 0.541 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.872e-05/0.3507, allocations: 45.31 kB / 0.5411 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.3509, allocations: 99.2 kB / 0.5412 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.3511, allocations: 150.8 kB / 0.5413 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002618/0.3514, allocations: 292.5 kB / 0.5416 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008289/0.3522, allocations: 0.653 MB / 0.5422 GB, free: 14.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3522, allocations: 4 kB / 0.5422 GB, free: 14.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3522, allocations: 1.344 kB / 0.5422 GB, free: 14.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.576e-05/0.3522, allocations: 0 / 0.5422 GB, free: 14.57 MB / 398.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.001621/0.3539, allocations: 0.9456 MB / 0.5432 GB, free: 13.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3539, allocations: 11.72 kB / 0.5432 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.012e-05/0.3539, allocations: 13.19 kB / 0.5432 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.493e-05/0.354, allocations: 82.89 kB / 0.5433 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003016/0.3543, allocations: 100.1 kB / 0.5434 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000793/0.3551, allocations: 442.4 kB / 0.5438 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.3551, allocations: 28.47 kB / 0.5438 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.3552, allocations: 35.38 kB / 0.5438 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008428/0.356, allocations: 480.4 kB / 0.5443 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.3561, allocations: 7.922 kB / 0.5443 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.209e-05/0.3561, allocations: 17.34 kB / 0.5443 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3561, allocations: 8.812 kB / 0.5443 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007275/0.3568, allocations: 259.4 kB / 0.5446 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.3587, allocations: 1.072 MB / 0.5456 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007228/0.3594, allocations: 179.4 kB / 0.5458 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.3597, allocations: 74.86 kB / 0.5459 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.3597, allocations: 5.75 kB / 0.5459 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.3597, allocations: 46.62 kB / 0.5459 GB, free: 11.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.3597, allocations: 0 / 0.5459 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009807/0.3607, allocations: 301.7 kB / 0.5462 GB, free: 11.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00026/0.361, allocations: 448.8 kB / 0.5466 GB, free: 11.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007952/0.3618, allocations: 0.6511 MB / 0.5473 GB, free: 10.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.3618, allocations: 32.8 kB / 0.5473 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.3621, allocations: 315.4 kB / 0.5476 GB, free: 10.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.92e-05/0.3621, allocations: 43.91 kB / 0.5476 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.3622, allocations: 59.08 kB / 0.5477 GB, free: 10.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.3624, allocations: 357.9 kB / 0.548 GB, free: 9.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.3627, allocations: 65.7 kB / 0.5481 GB, free: 9.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003674/0.363, allocations: 191 kB / 0.5483 GB, free: 9.695 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004885/0.3635, allocations: 152.9 kB / 0.5484 GB, free: 9.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3635, allocations: 0 / 0.5484 GB, free: 9.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006956/0.3642, allocations: 254.4 kB / 0.5487 GB, free: 9.465 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3642, allocations: 9.203 kB / 0.5487 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3642, allocations: 4.844 kB / 0.5487 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3643, allocations: 1.5 kB / 0.5487 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.3645, allocations: 40.66 kB / 0.5487 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3645, allocations: 1.25 kB / 0.5487 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003654/0.3649, allocations: 51.03 kB / 0.5488 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/0.3649, allocations: 8.141 kB / 0.5488 GB, free: 9.414 MB / 398.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.0002354/0.3651, allocations: 181.1 kB / 0.549 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.3652, allocations: 60.62 kB / 0.549 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005293/0.3658, allocations: 197 kB / 0.5492 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3658, allocations: 2.469 kB / 0.5492 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3658, allocations: 0 / 0.5492 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3658, allocations: 5.219 kB / 0.5492 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006148/0.3664, allocations: 445.7 kB / 0.5496 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3664, allocations: 1.344 kB / 0.5496 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.3666, allocations: 34.44 kB / 0.5497 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.3666, allocations: 1.25 kB / 0.5497 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.3666, allocations: 13.45 kB / 0.5497 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3666, allocations: 0 / 0.5497 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3666, allocations: 5.562 kB / 0.5497 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006922/0.3673, allocations: 398.7 kB / 0.5501 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.3676, allocations: 98.42 kB / 0.5502 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.751e-05/0.3676, allocations: 14.69 kB / 0.5502 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003826/0.368, allocations: 38.17 kB / 0.5502 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.3681, allocations: 15.72 kB / 0.5502 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.3681, allocations: 3.031 kB / 0.5502 GB, free: 8.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000549/0.3686, allocations: 465.7 kB / 0.5507 GB, free: 8.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3686, allocations: 1.531 kB / 0.5507 GB, free: 8.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004442/0.3691, allocations: 106.7 kB / 0.5508 GB, free: 8.02 MB / 398.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.002333/0.3714, allocations: 1.204 MB / 0.552 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006748/0.3721, allocations: 165.2 kB / 0.5521 GB, free: 7.004 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-05/0.3721, allocations: 5.312 kB / 0.5521 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.3724, allocations: 73.84 kB / 0.5522 GB, free: 6.969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008587/0.3732, allocations: 144.5 kB / 0.5523 GB, free: 6.891 MB / 398.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.005816/0.379, allocations: 3.705 MB / 0.556 GB, free: 4.383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005494/0.3796, allocations: 0.8904 MB / 0.5568 GB, free: 3.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002602/0.3798, allocations: 57.69 kB / 0.5569 GB, free: 3.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002828/0.3801, allocations: 202 kB / 0.5571 GB, free: 3.398 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3801, allocations: 1.344 kB / 0.5571 GB, free: 3.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2976/0.6777, allocations: 10.46 MB / 0.5673 GB, free: 10.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/13.05, allocations: 9.375 kB / 0.5673 GB, free: 10.26 MB / 414.1 MB " [Timeout remaining time 646] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.94930790294893] Failed to read output from testmodel.py, exit status != 0: 14.472893917001784 14.492050484 14.136282536 Calling exit ...