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.001537/0.001537, allocations: 93.92 kB / 19.73 MB, free: 2.129 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.001405/0.001405, allocations: 217.1 kB / 23.03 MB, free: 4.953 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.518/1.518, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.1817/0.1817, allocations: 31.55 MB / 344.8 MB, free: 3.805 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_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.001937/0.001937, allocations: 75.88 kB / 481.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3588, allocations: 60.71 MB / 0.5295 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.008444/0.3673, allocations: 6.421 MB / 0.5358 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003884/0.3712, allocations: 2.341 MB / 0.5381 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008514/0.372, allocations: 32.34 kB / 0.5381 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004385/0.3725, allocations: 166.5 kB / 0.5383 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000546/0.373, allocations: 199.5 kB / 0.5385 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007203/0.3737, allocations: 341.1 kB / 0.5388 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006463/0.3744, allocations: 0.727 MB / 0.5395 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.3747, allocations: 254 kB / 0.5397 GB, free: 496 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.375, allocations: 252.6 kB / 0.54 GB, free: 328 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.3751, allocations: 256.6 kB / 0.5402 GB, free: 120 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.171e-05/0.3752, allocations: 48.53 kB / 0.5403 GB, free: 116 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.3754, allocations: 84.36 kB / 0.5403 GB, free: 100 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.3755, allocations: 146.8 kB / 0.5405 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002234/0.3757, allocations: 229.7 kB / 0.5407 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007292/0.3765, allocations: 0.6523 MB / 0.5413 GB, free: 15.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3765, allocations: 0 / 0.5413 GB, free: 15.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3765, allocations: 0 / 0.5413 GB, free: 15.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.3765, allocations: 1.375 kB / 0.5413 GB, free: 15.32 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.001467/0.378, allocations: 0.9615 MB / 0.5423 GB, free: 14.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.378, allocations: 10.34 kB / 0.5423 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.123e-05/0.378, allocations: 14.19 kB / 0.5423 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.884e-05/0.3781, allocations: 71.84 kB / 0.5424 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000284/0.3784, allocations: 102.9 kB / 0.5425 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007562/0.3791, allocations: 443.5 kB / 0.5429 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.3792, allocations: 27.84 kB / 0.5429 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.3792, allocations: 39.25 kB / 0.543 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.3803, allocations: 0.818 MB / 0.5438 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3803, allocations: 3.938 kB / 0.5438 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.3803, allocations: 17.5 kB / 0.5438 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.3804, allocations: 8.625 kB / 0.5438 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006859/0.381, allocations: 257.1 kB / 0.544 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.3828, allocations: 0.9722 MB / 0.545 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007385/0.3836, allocations: 175.7 kB / 0.5452 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.3838, allocations: 79.27 kB / 0.5452 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.3838, allocations: 2.312 kB / 0.5452 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3839, allocations: 38.41 kB / 0.5453 GB, free: 12.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.3839, allocations: 0 / 0.5453 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009413/0.3848, allocations: 310.8 kB / 0.5456 GB, free: 11.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002482/0.3851, allocations: 444.6 kB / 0.546 GB, free: 11.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008036/0.3859, allocations: 0.6509 MB / 0.5466 GB, free: 11.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.3859, allocations: 36.33 kB / 0.5467 GB, free: 11.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.3862, allocations: 318.9 kB / 0.547 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.095e-05/0.3862, allocations: 41.09 kB / 0.547 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.3863, allocations: 54.52 kB / 0.5471 GB, free: 10.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3865, allocations: 359.3 kB / 0.5474 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.3868, allocations: 65.17 kB / 0.5475 GB, free: 10.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005424/0.3873, allocations: 0.5406 MB / 0.548 GB, free: 9.672 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.3878, allocations: 165.1 kB / 0.5481 GB, free: 9.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3878, allocations: 1.156 kB / 0.5481 GB, free: 9.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006651/0.3885, allocations: 249.5 kB / 0.5484 GB, free: 9.434 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3885, allocations: 6.5 kB / 0.5484 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3885, allocations: 3.938 kB / 0.5484 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.3885, allocations: 2.375 kB / 0.5484 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.3888, allocations: 47.7 kB / 0.5484 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.3888, allocations: 5.375 kB / 0.5484 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.3891, allocations: 43.22 kB / 0.5485 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.3892, allocations: 7.875 kB / 0.5485 GB, free: 9.383 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.0002389/0.3894, allocations: 185.4 kB / 0.5487 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3895, allocations: 60.75 kB / 0.5487 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000503/0.39, allocations: 189.2 kB / 0.5489 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.39, allocations: 6.688 kB / 0.5489 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.39, allocations: 0 / 0.5489 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.39, allocations: 5.141 kB / 0.5489 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005813/0.3906, allocations: 406 kB / 0.5493 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3906, allocations: 3.984 kB / 0.5493 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.3908, allocations: 34.53 kB / 0.5493 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3908, allocations: 1.312 kB / 0.5493 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.3908, allocations: 5.531 kB / 0.5493 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.3909, allocations: 1.344 kB / 0.5494 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.3909, allocations: 1.625 kB / 0.5494 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007207/0.3916, allocations: 408.1 kB / 0.5497 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.3918, allocations: 93.95 kB / 0.5498 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.034e-05/0.3919, allocations: 6.875 kB / 0.5498 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.3922, allocations: 37.92 kB / 0.5499 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.129e-05/0.3923, allocations: 19.36 kB / 0.5499 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.3923, allocations: 3.406 kB / 0.5499 GB, free: 8.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006262/0.393, allocations: 466.3 kB / 0.5503 GB, free: 8.066 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.393, allocations: 1.125 kB / 0.5503 GB, free: 8.066 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005012/0.3935, allocations: 110.8 kB / 0.5504 GB, free: 8.031 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.002576/0.396, allocations: 1.217 MB / 0.5516 GB, free: 7.098 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006518/0.3967, allocations: 172.8 kB / 0.5518 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3967, allocations: 1.438 kB / 0.5518 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002611/0.3969, allocations: 78 kB / 0.5519 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008233/0.3978, allocations: 138.1 kB / 0.552 GB, free: 6.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006337/0.4041, allocations: 3.703 MB / 0.5556 GB, free: 4.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.4044, allocations: 289.7 kB / 0.5559 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002908/0.4047, allocations: 70.77 kB / 0.556 GB, free: 4.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003201/0.405, allocations: 197.9 kB / 0.5562 GB, free: 4.027 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.405, allocations: 0 / 0.5562 GB, free: 4.027 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03667/0.4417, allocations: 11.46 MB / 0.5674 GB, free: 9.828 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.73, allocations: 7.922 kB / 0.5674 GB, free: 9.82 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.797955443966202] Failed to read output from testmodel.py, exit status != 0: 12.960507377050817 12.979296714 12.599435741 Calling exit ...