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.001402/0.001402, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.002102/0.002102, allocations: 223.6 kB / 22.25 MB, free: 5.109 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.474/1.474, allocations: 230.6 MB / 256 MB, free: 7.82 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.2155/0.2155, allocations: 31.53 MB / 344 MB, free: 3.824 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_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.003099/0.003099, allocations: 63.89 kB / 480.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3176, allocations: 60.72 MB / 0.5288 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007704/0.3253, allocations: 6.446 MB / 0.5351 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004103/0.3294, allocations: 2.344 MB / 0.5373 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.3305, allocations: 32.38 kB / 0.5374 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005183/0.331, allocations: 171.3 kB / 0.5375 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006539/0.3316, allocations: 198.3 kB / 0.5377 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009835/0.3326, allocations: 336.2 kB / 0.538 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009067/0.3335, allocations: 0.7231 MB / 0.5387 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004527/0.334, allocations: 240.2 kB / 0.539 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.3343, allocations: 260 kB / 0.5392 GB, free: 432 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.3345, allocations: 223.8 kB / 0.5394 GB, free: 256 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.402e-05/0.3346, allocations: 45.06 kB / 0.5395 GB, free: 256 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.3348, allocations: 83.38 kB / 0.5396 GB, free: 240 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.3349, allocations: 146.9 kB / 0.5397 GB, free: 124 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.3352, allocations: 229.9 kB / 0.5399 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008518/0.336, allocations: 0.6568 MB / 0.5406 GB, free: 15.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.336, allocations: 0 / 0.5406 GB, free: 15.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.336, allocations: 3.984 kB / 0.5406 GB, free: 15.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.336, allocations: 4 kB / 0.5406 GB, free: 15.45 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.001578/0.3376, allocations: 0.9464 MB / 0.5415 GB, free: 14.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.3376, allocations: 10.75 kB / 0.5415 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.044e-05/0.3377, allocations: 79.19 kB / 0.5416 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002763/0.338, allocations: 100.6 kB / 0.5417 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007898/0.3388, allocations: 445.4 kB / 0.5421 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.3388, allocations: 28.56 kB / 0.5421 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.3389, allocations: 31.22 kB / 0.5422 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.3399, allocations: 0.8174 MB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.3399, allocations: 1.375 kB / 0.543 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/0.34, allocations: 24.05 kB / 0.543 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.34, allocations: 9.625 kB / 0.543 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007159/0.3407, allocations: 257.2 kB / 0.5432 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.3426, allocations: 0.9784 MB / 0.5442 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007272/0.3433, allocations: 179.7 kB / 0.5444 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002545/0.3436, allocations: 75.56 kB / 0.5444 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.3436, allocations: 2.156 kB / 0.5444 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.3436, allocations: 38.72 kB / 0.5445 GB, free: 12.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.3436, allocations: 0 / 0.5445 GB, free: 12.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.000986/0.3446, allocations: 306.8 kB / 0.5448 GB, free: 12.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002512/0.3449, allocations: 444.6 kB / 0.5452 GB, free: 11.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007956/0.3456, allocations: 0.6447 MB / 0.5458 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.3457, allocations: 32.11 kB / 0.5458 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.3459, allocations: 319.7 kB / 0.5462 GB, free: 10.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.122e-05/0.346, allocations: 41.39 kB / 0.5462 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.3461, allocations: 54.98 kB / 0.5462 GB, free: 10.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.3463, allocations: 358.8 kB / 0.5466 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002833/0.3466, allocations: 76.69 kB / 0.5467 GB, free: 10.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000572/0.3472, allocations: 0.5334 MB / 0.5472 GB, free: 9.812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004987/0.3477, allocations: 165.7 kB / 0.5473 GB, free: 9.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3477, allocations: 0 / 0.5473 GB, free: 9.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006835/0.3483, allocations: 250.8 kB / 0.5476 GB, free: 9.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3484, allocations: 4.844 kB / 0.5476 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3484, allocations: 1.625 kB / 0.5476 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3484, allocations: 5.406 kB / 0.5476 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.3486, allocations: 43.39 kB / 0.5476 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3486, allocations: 1.156 kB / 0.5476 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.349, allocations: 48 kB / 0.5477 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.349, allocations: 7.922 kB / 0.5477 GB, free: 9.527 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.0002631/0.3493, allocations: 181.4 kB / 0.5479 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.3494, allocations: 60.81 kB / 0.5479 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005243/0.3499, allocations: 197.6 kB / 0.5481 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.3499, allocations: 1.469 kB / 0.5481 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3499, allocations: 1.562 kB / 0.5481 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3499, allocations: 0 / 0.5481 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006323/0.3506, allocations: 405.6 kB / 0.5485 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3506, allocations: 0.8438 kB / 0.5485 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.3508, allocations: 35.16 kB / 0.5485 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.3508, allocations: 1.125 kB / 0.5485 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.3508, allocations: 21.05 kB / 0.5486 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3508, allocations: 5.062 kB / 0.5486 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3508, allocations: 1.156 kB / 0.5486 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008002/0.3516, allocations: 396.3 kB / 0.5489 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/0.3519, allocations: 97.42 kB / 0.549 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.454e-05/0.3519, allocations: 11.78 kB / 0.549 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.3523, allocations: 38.11 kB / 0.5491 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.3524, allocations: 15.08 kB / 0.5491 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.3524, allocations: 6.703 kB / 0.5491 GB, free: 8.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005755/0.353, allocations: 465.9 kB / 0.5495 GB, free: 8.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.353, allocations: 0 / 0.5495 GB, free: 8.203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004352/0.3534, allocations: 103.1 kB / 0.5496 GB, free: 8.176 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.00243/0.3558, allocations: 1.218 MB / 0.5508 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006253/0.3564, allocations: 165.2 kB / 0.551 GB, free: 7.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.3564, allocations: 9.125 kB / 0.551 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002683/0.3567, allocations: 81.88 kB / 0.5511 GB, free: 7.117 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009171/0.3576, allocations: 152.7 kB / 0.5512 GB, free: 7.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006003/0.3636, allocations: 3.686 MB / 0.5548 GB, free: 4.555 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.364, allocations: 289.7 kB / 0.5551 GB, free: 4.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002783/0.3643, allocations: 65.78 kB / 0.5552 GB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.3646, allocations: 203 kB / 0.5554 GB, free: 4.172 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3646, allocations: 0 / 0.5554 GB, free: 4.172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04253/0.4071, allocations: 11.89 MB / 0.567 GB, free: 9.418 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.34, allocations: 3.562 kB / 0.567 GB, free: 9.418 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.274557678028941] Failed to read output from testmodel.py, exit status != 0: 12.505624465178698 12.520916923 12.181585355 Calling exit ...