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.001328/0.001328, allocations: 99.64 kB / 18.95 MB, free: 2.539 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.001463/0.001463, allocations: 210.8 kB / 22.24 MB, free: 4.875 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.425/1.425, allocations: 230.6 MB / 256 MB, free: 7.805 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.1762/0.1762, allocations: 31.55 MB / 344 MB, free: 3.785 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.002127/0.002127, allocations: 64.17 kB / 480.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3478, allocations: 60.72 MB / 0.5288 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.00785/0.3556, allocations: 6.448 MB / 0.5351 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005348/0.361, allocations: 2.347 MB / 0.5374 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.3628, allocations: 28.41 kB / 0.5374 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008215/0.3636, allocations: 171.4 kB / 0.5375 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001172/0.3647, allocations: 194.4 kB / 0.5377 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.3661, allocations: 334.3 kB / 0.538 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.3676, allocations: 0.7381 MB / 0.5388 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005848/0.3682, allocations: 232.4 kB / 0.539 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003854/0.3686, allocations: 258.2 kB / 0.5392 GB, free: 416 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.3688, allocations: 221.9 kB / 0.5394 GB, free: 240 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.278e-05/0.3689, allocations: 44.81 kB / 0.5395 GB, free: 240 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.3691, allocations: 85.12 kB / 0.5396 GB, free: 224 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.3693, allocations: 145.9 kB / 0.5397 GB, free: 108 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.3695, allocations: 232.9 kB / 0.5399 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009298/0.3704, allocations: 0.6492 MB / 0.5406 GB, free: 15.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3704, allocations: 0 / 0.5406 GB, free: 15.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3704, allocations: 1.375 kB / 0.5406 GB, free: 15.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.3704, allocations: 0 / 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.001943/0.3724, allocations: 0.9541 MB / 0.5415 GB, free: 14.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.3724, allocations: 10.34 kB / 0.5415 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.3725, allocations: 78.84 kB / 0.5416 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.3729, allocations: 103.5 kB / 0.5417 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008623/0.3737, allocations: 443.6 kB / 0.5421 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.3738, allocations: 28.12 kB / 0.5421 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/0.3738, allocations: 39.31 kB / 0.5422 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.3749, allocations: 0.8153 MB / 0.543 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3749, allocations: 4.969 kB / 0.543 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.3749, allocations: 21.12 kB / 0.543 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.3749, allocations: 7.969 kB / 0.543 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006917/0.3756, allocations: 253 kB / 0.5432 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.3776, allocations: 0.9875 MB / 0.5442 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/0.3783, allocations: 171.7 kB / 0.5444 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002704/0.3786, allocations: 71.17 kB / 0.5444 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.3787, allocations: 9.984 kB / 0.5444 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.3787, allocations: 34.94 kB / 0.5445 GB, free: 12.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.984e-06/0.3787, allocations: 4 kB / 0.5445 GB, free: 12.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009521/0.3796, allocations: 305.4 kB / 0.5448 GB, free: 12.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002717/0.3799, allocations: 442 kB / 0.5452 GB, free: 11.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008474/0.3808, allocations: 0.645 MB / 0.5458 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.3808, allocations: 28.77 kB / 0.5459 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.3811, allocations: 323.3 kB / 0.5462 GB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.3811, allocations: 40.86 kB / 0.5462 GB, free: 10.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.3812, allocations: 55.39 kB / 0.5463 GB, free: 10.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3814, allocations: 358.8 kB / 0.5466 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.3817, allocations: 76.53 kB / 0.5467 GB, free: 10.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.3823, allocations: 0.5341 MB / 0.5472 GB, free: 9.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000522/0.3828, allocations: 160.1 kB / 0.5473 GB, free: 9.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3828, allocations: 0 / 0.5473 GB, free: 9.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006627/0.3834, allocations: 247 kB / 0.5476 GB, free: 9.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.3835, allocations: 9.219 kB / 0.5476 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3835, allocations: 1.281 kB / 0.5476 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.3835, allocations: 5.312 kB / 0.5476 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.3837, allocations: 44.48 kB / 0.5476 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3837, allocations: 1.375 kB / 0.5476 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003478/0.3841, allocations: 47.53 kB / 0.5477 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.3841, allocations: 3.359 kB / 0.5477 GB, free: 9.523 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.000231/0.3843, allocations: 181 kB / 0.5479 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.3844, allocations: 65.39 kB / 0.5479 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005059/0.3849, allocations: 197.7 kB / 0.5481 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.385, allocations: 5.203 kB / 0.5481 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.385, allocations: 5.438 kB / 0.5481 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.385, allocations: 0 / 0.5481 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006103/0.3856, allocations: 406 kB / 0.5485 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3856, allocations: 5.469 kB / 0.5485 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.3858, allocations: 33.78 kB / 0.5485 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3858, allocations: 1.5 kB / 0.5485 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.3858, allocations: 5.469 kB / 0.5486 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/0.3858, allocations: 5.406 kB / 0.5486 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3858, allocations: 3.984 kB / 0.5486 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007406/0.3866, allocations: 401.1 kB / 0.5489 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002497/0.3868, allocations: 97.95 kB / 0.549 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.421e-05/0.3869, allocations: 10.81 kB / 0.549 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003598/0.3872, allocations: 41.77 kB / 0.5491 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.3873, allocations: 7.422 kB / 0.5491 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.3873, allocations: 11.23 kB / 0.5491 GB, free: 8.441 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005627/0.3878, allocations: 462.3 kB / 0.5495 GB, free: 8.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3878, allocations: 0 / 0.5495 GB, free: 8.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004228/0.3883, allocations: 114.5 kB / 0.5497 GB, free: 8.156 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.002244/0.3905, allocations: 1.223 MB / 0.5508 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005906/0.3911, allocations: 160.7 kB / 0.551 GB, free: 7.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.3911, allocations: 5.375 kB / 0.551 GB, free: 7.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002631/0.3914, allocations: 85.09 kB / 0.5511 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007917/0.3922, allocations: 139.5 kB / 0.5512 GB, free: 7.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005708/0.3979, allocations: 3.692 MB / 0.5548 GB, free: 4.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.3982, allocations: 289.8 kB / 0.5551 GB, free: 4.363 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002586/0.3985, allocations: 62.41 kB / 0.5552 GB, free: 4.336 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002852/0.3988, allocations: 202.8 kB / 0.5554 GB, free: 4.164 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3988, allocations: 4 kB / 0.5554 GB, free: 4.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04258/0.4413, allocations: 11.88 MB / 0.567 GB, free: 9.367 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.07, allocations: 4 kB / 0.567 GB, free: 9.363 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.817147369962186] Failed to read output from testmodel.py, exit status != 0: 12.235661416314542 12.253222933 11.879330806 Calling exit ...