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.001327/0.001327, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001433/0.001433, allocations: 222.4 kB / 23.03 MB, free: 4.945 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.1786/0.1786, allocations: 31.54 MB / 344.8 MB, free: 3.789 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.001966/0.001966, allocations: 63.91 kB / 481.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.375, allocations: 60.72 MB / 0.5295 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008366/0.3834, allocations: 6.429 MB / 0.5358 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.3889, allocations: 2.34 MB / 0.5381 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002166/0.3911, allocations: 33.19 kB / 0.5381 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006319/0.3917, allocations: 167.5 kB / 0.5383 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007868/0.3925, allocations: 198.3 kB / 0.5385 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.3936, allocations: 336.9 kB / 0.5388 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001146/0.3947, allocations: 0.7187 MB / 0.5395 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000493/0.3952, allocations: 262.5 kB / 0.5397 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002927/0.3955, allocations: 251 kB / 0.54 GB, free: 380 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.3957, allocations: 257.5 kB / 0.5402 GB, free: 172 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.008e-05/0.3958, allocations: 44.75 kB / 0.5403 GB, free: 172 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.396, allocations: 84.39 kB / 0.5403 GB, free: 156 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.3961, allocations: 146 kB / 0.5405 GB, free: 40 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002323/0.3964, allocations: 226 kB / 0.5407 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000849/0.3972, allocations: 0.6605 MB / 0.5413 GB, free: 15.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3972, allocations: 0 / 0.5413 GB, free: 15.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3972, allocations: 0 / 0.5413 GB, free: 15.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.3972, allocations: 4 kB / 0.5413 GB, free: 15.37 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.00172/0.3989, allocations: 0.9506 MB / 0.5423 GB, free: 14.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.399, allocations: 14.33 kB / 0.5423 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.476e-05/0.399, allocations: 14.56 kB / 0.5423 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.414e-05/0.3991, allocations: 74.91 kB / 0.5424 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003076/0.3994, allocations: 99.55 kB / 0.5425 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000795/0.4002, allocations: 447.6 kB / 0.5429 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.4002, allocations: 28.12 kB / 0.5429 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.652e-05/0.4003, allocations: 35.38 kB / 0.543 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.4014, allocations: 0.8137 MB / 0.5437 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.4014, allocations: 3.938 kB / 0.5438 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.386e-05/0.4014, allocations: 16.31 kB / 0.5438 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.4015, allocations: 9.312 kB / 0.5438 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007136/0.4022, allocations: 261.6 kB / 0.544 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.4041, allocations: 0.9753 MB / 0.545 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007405/0.4048, allocations: 175.6 kB / 0.5451 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/0.405, allocations: 79.61 kB / 0.5452 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.4051, allocations: 6.172 kB / 0.5452 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.4051, allocations: 39 kB / 0.5453 GB, free: 12.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.793e-06/0.4051, allocations: 0 / 0.5453 GB, free: 12.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001019/0.4061, allocations: 305.2 kB / 0.5456 GB, free: 12.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002552/0.4064, allocations: 442 kB / 0.546 GB, free: 11.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000857/0.4072, allocations: 0.6547 MB / 0.5466 GB, free: 11.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.4073, allocations: 31.86 kB / 0.5466 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000264/0.4075, allocations: 320 kB / 0.547 GB, free: 10.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.739e-05/0.4076, allocations: 35.81 kB / 0.547 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.4077, allocations: 55.52 kB / 0.547 GB, free: 10.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.4079, allocations: 363.2 kB / 0.5474 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.4081, allocations: 72.78 kB / 0.5475 GB, free: 10.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000575/0.4087, allocations: 0.5428 MB / 0.548 GB, free: 9.719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000485/0.4092, allocations: 160.7 kB / 0.5481 GB, free: 9.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4092, allocations: 0 / 0.5481 GB, free: 9.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007055/0.4099, allocations: 251.2 kB / 0.5484 GB, free: 9.484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.4099, allocations: 5.688 kB / 0.5484 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.4099, allocations: 3.938 kB / 0.5484 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.41, allocations: 1.469 kB / 0.5484 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.4102, allocations: 44.33 kB / 0.5484 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.4102, allocations: 1.344 kB / 0.5484 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003678/0.4106, allocations: 43.44 kB / 0.5485 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.4106, allocations: 4.188 kB / 0.5485 GB, free: 9.445 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.0002643/0.4109, allocations: 189.6 kB / 0.5487 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.411, allocations: 60.25 kB / 0.5487 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005245/0.4115, allocations: 198 kB / 0.5489 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.4115, allocations: 5.125 kB / 0.5489 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4116, allocations: 1.219 kB / 0.5489 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.4116, allocations: 0 / 0.5489 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000831/0.4124, allocations: 410.8 kB / 0.5493 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4124, allocations: 0 / 0.5493 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.4126, allocations: 35.16 kB / 0.5493 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.281e-06/0.4126, allocations: 5.125 kB / 0.5493 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.4126, allocations: 9.328 kB / 0.5494 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.4127, allocations: 1.344 kB / 0.5494 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4127, allocations: 3.938 kB / 0.5494 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000805/0.4135, allocations: 393.4 kB / 0.5497 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002823/0.4137, allocations: 96.92 kB / 0.5498 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.205e-05/0.4138, allocations: 7.906 kB / 0.5498 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003615/0.4142, allocations: 41.14 kB / 0.5499 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.818e-05/0.4142, allocations: 11.98 kB / 0.5499 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.4143, allocations: 11.61 kB / 0.5499 GB, free: 8.367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006775/0.4149, allocations: 466.4 kB / 0.5503 GB, free: 8.117 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4149, allocations: 96 / 0.5503 GB, free: 8.117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005052/0.4154, allocations: 107.9 kB / 0.5504 GB, free: 8.086 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.002517/0.418, allocations: 1.215 MB / 0.5516 GB, free: 7.152 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006239/0.4186, allocations: 172.1 kB / 0.5518 GB, free: 7.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4186, allocations: 6.375 kB / 0.5518 GB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.4188, allocations: 69.58 kB / 0.5519 GB, free: 7.043 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008508/0.4197, allocations: 150.1 kB / 0.552 GB, free: 6.961 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006622/0.4263, allocations: 3.698 MB / 0.5556 GB, free: 4.465 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.4267, allocations: 294.2 kB / 0.5559 GB, free: 4.281 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000301/0.427, allocations: 66.55 kB / 0.556 GB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/0.4273, allocations: 197.8 kB / 0.5562 GB, free: 4.082 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4273, allocations: 0 / 0.5562 GB, free: 4.082 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03534/0.4626, allocations: 11.46 MB / 0.5673 GB, free: 9.836 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.76, allocations: 10.73 kB / 0.5674 GB, free: 9.832 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.72618530294858] Failed to read output from testmodel.py, exit status != 0: 12.98083161492832 13.004855919 12.602883406 Calling exit ...