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.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.00189/0.00189, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.003103/0.003103, allocations: 214.8 kB / 22.25 MB, free: 5.129 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.515/1.515, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1794/0.1794, allocations: 31.56 MB / 344 MB, free: 3.941 MB / 270.1 MB " [Timeout remaining time 180] 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.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_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"}) [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.00234/0.00234, allocations: 75.88 kB / 480.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3404, allocations: 60.71 MB / 0.5288 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008429/0.3488, allocations: 7.127 MB / 0.5358 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005005/0.3538, allocations: 2.381 MB / 0.5381 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.3557, allocations: 29.03 kB / 0.5382 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007525/0.3564, allocations: 170.2 kB / 0.5383 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009603/0.3574, allocations: 193.3 kB / 0.5385 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000978/0.3584, allocations: 359.8 kB / 0.5388 GB, free: 388 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000733/0.3591, allocations: 0.7269 MB / 0.5396 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004898/0.3596, allocations: 250.2 kB / 0.5398 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.3599, allocations: 252.3 kB / 0.54 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.3602, allocations: 252.5 kB / 0.5403 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-05/0.3602, allocations: 47.72 kB / 0.5403 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.3604, allocations: 90.89 kB / 0.5404 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.3606, allocations: 151.3 kB / 0.5406 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.3608, allocations: 288.1 kB / 0.5408 GB, free: 15.13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008917/0.3617, allocations: 0.6578 MB / 0.5415 GB, free: 14.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3617, allocations: 0 / 0.5415 GB, free: 14.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3617, allocations: 0 / 0.5415 GB, free: 14.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.3617, allocations: 0 / 0.5415 GB, free: 14.63 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.001558/0.3633, allocations: 0.9571 MB / 0.5424 GB, free: 13.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3633, allocations: 10.34 kB / 0.5424 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.956e-05/0.3634, allocations: 84.2 kB / 0.5425 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002705/0.3637, allocations: 99.55 kB / 0.5426 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007427/0.3644, allocations: 438.2 kB / 0.543 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.3645, allocations: 28.12 kB / 0.543 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.3645, allocations: 39.38 kB / 0.5431 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000873/0.3654, allocations: 472 kB / 0.5435 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3654, allocations: 0 / 0.5435 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.685e-05/0.3655, allocations: 22.41 kB / 0.5435 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.3655, allocations: 7.906 kB / 0.5436 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007365/0.3662, allocations: 265.8 kB / 0.5438 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.3681, allocations: 1.083 MB / 0.5449 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007256/0.3688, allocations: 171.9 kB / 0.545 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.3691, allocations: 71.7 kB / 0.5451 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.3691, allocations: 5.156 kB / 0.5451 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.3691, allocations: 41.97 kB / 0.5451 GB, free: 11.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.3691, allocations: 0 / 0.5451 GB, free: 11.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001001/0.3701, allocations: 306.7 kB / 0.5454 GB, free: 11.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002612/0.3704, allocations: 448.2 kB / 0.5459 GB, free: 11.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008256/0.3712, allocations: 0.6435 MB / 0.5465 GB, free: 10.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.3713, allocations: 31.98 kB / 0.5465 GB, free: 10.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000276/0.3715, allocations: 316.3 kB / 0.5468 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.3716, allocations: 43.8 kB / 0.5469 GB, free: 10.37 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.3717, allocations: 56.05 kB / 0.5469 GB, free: 10.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.3719, allocations: 358.4 kB / 0.5473 GB, free: 9.984 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.3721, allocations: 68.73 kB / 0.5473 GB, free: 9.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003559/0.3725, allocations: 200.4 kB / 0.5475 GB, free: 9.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004683/0.373, allocations: 152.1 kB / 0.5477 GB, free: 9.676 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.373, allocations: 4 kB / 0.5477 GB, free: 9.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006541/0.3736, allocations: 250.4 kB / 0.5479 GB, free: 9.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3736, allocations: 5.562 kB / 0.5479 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3736, allocations: 1.469 kB / 0.5479 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3737, allocations: 5.312 kB / 0.5479 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.3739, allocations: 47.61 kB / 0.548 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3739, allocations: 5.438 kB / 0.548 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003461/0.3743, allocations: 47.86 kB / 0.548 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.3743, allocations: 8.438 kB / 0.548 GB, free: 9.477 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.0002263/0.3745, allocations: 180 kB / 0.5482 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.3746, allocations: 60.97 kB / 0.5482 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004834/0.3751, allocations: 189.2 kB / 0.5484 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3751, allocations: 3.906 kB / 0.5484 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3751, allocations: 3.938 kB / 0.5484 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.3751, allocations: 0 / 0.5484 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006131/0.3757, allocations: 449.9 kB / 0.5489 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3757, allocations: 0 / 0.5489 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.376, allocations: 39.12 kB / 0.5489 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.376, allocations: 13.3 kB / 0.5489 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.376, allocations: 5.156 kB / 0.5489 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.376, allocations: 1.562 kB / 0.5489 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.376, allocations: 0 / 0.5489 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006623/0.3766, allocations: 407.5 kB / 0.5493 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.3769, allocations: 94 kB / 0.5494 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/0.3769, allocations: 10.81 kB / 0.5494 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003821/0.3773, allocations: 45.41 kB / 0.5495 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.706e-05/0.3774, allocations: 8.453 kB / 0.5495 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.3774, allocations: 2.594 kB / 0.5495 GB, free: 8.363 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006024/0.378, allocations: 466.3 kB / 0.5499 GB, free: 8.113 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.378, allocations: 5.5 kB / 0.5499 GB, free: 8.109 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.3785, allocations: 107.7 kB / 0.55 GB, free: 8.078 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.002308/0.3808, allocations: 1.201 MB / 0.5512 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006553/0.3814, allocations: 172.4 kB / 0.5514 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3814, allocations: 1.125 kB / 0.5514 GB, free: 7.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.3817, allocations: 78.12 kB / 0.5514 GB, free: 7.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008207/0.3825, allocations: 139.5 kB / 0.5516 GB, free: 6.941 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.005786/0.3883, allocations: 3.7 MB / 0.5552 GB, free: 4.441 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005995/0.3889, allocations: 0.8862 MB / 0.556 GB, free: 3.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002888/0.3892, allocations: 69.77 kB / 0.5561 GB, free: 3.621 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002838/0.3895, allocations: 198.5 kB / 0.5563 GB, free: 3.453 MB / 398.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3895, allocations: 0 / 0.5563 GB, free: 3.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3166/0.7061, allocations: 10.42 MB / 0.5665 GB, free: 10.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.18, allocations: 9.75 kB / 0.5665 GB, free: 10.27 MB / 414.1 MB " [Timeout remaining time 645] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.091317703016102] Failed to read output from testmodel.py, exit status != 0: 14.652470675995573 14.670750519 14.305379404 Calling exit ...