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.001285/0.001285, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.001354/0.001354, allocations: 217 kB / 23.04 MB, free: 5.074 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.53/1.53, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.1819/0.1819, allocations: 31.56 MB / 344.8 MB, free: 3.977 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.001992/0.001992, allocations: 63.88 kB / 481.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3308, allocations: 60.71 MB / 0.5296 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007601/0.3384, allocations: 7.122 MB / 0.5366 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004083/0.3424, allocations: 2.378 MB / 0.5389 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.3435, allocations: 28.94 kB / 0.5389 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005005/0.344, allocations: 170.8 kB / 0.5391 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005755/0.3446, allocations: 189 kB / 0.5393 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008185/0.3454, allocations: 366.5 kB / 0.5396 GB, free: 356 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007822/0.3462, allocations: 0.7275 MB / 0.5403 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004594/0.3467, allocations: 256.1 kB / 0.5406 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003114/0.347, allocations: 248.2 kB / 0.5408 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.3473, allocations: 252.2 kB / 0.541 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.32e-05/0.3473, allocations: 45.06 kB / 0.5411 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001877/0.3475, allocations: 86.86 kB / 0.5412 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.3477, allocations: 154.2 kB / 0.5413 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002567/0.348, allocations: 294 kB / 0.5416 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008031/0.3488, allocations: 0.6525 MB / 0.5422 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3488, allocations: 0 / 0.5422 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3488, allocations: 1.625 kB / 0.5422 GB, free: 14.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.3488, allocations: 0 / 0.5422 GB, free: 14.59 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.001561/0.3503, allocations: 0.9605 MB / 0.5432 GB, free: 13.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.3504, allocations: 10.34 kB / 0.5432 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.918e-05/0.3504, allocations: 17.19 kB / 0.5432 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.3505, allocations: 76.28 kB / 0.5433 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.3508, allocations: 103.5 kB / 0.5434 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008144/0.3517, allocations: 437.9 kB / 0.5438 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.3517, allocations: 32.33 kB / 0.5438 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/0.3517, allocations: 31.53 kB / 0.5439 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009058/0.3527, allocations: 472.5 kB / 0.5443 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.3527, allocations: 3.938 kB / 0.5443 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.3527, allocations: 21.84 kB / 0.5443 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3527, allocations: 8.25 kB / 0.5443 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007638/0.3535, allocations: 261.8 kB / 0.5446 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.3556, allocations: 1.075 MB / 0.5456 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007504/0.3563, allocations: 175.5 kB / 0.5458 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.3566, allocations: 75.12 kB / 0.5459 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.3566, allocations: 1.938 kB / 0.5459 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.3566, allocations: 41.59 kB / 0.5459 GB, free: 11.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 2.174e-06/0.3566, allocations: 0.9062 kB / 0.5459 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001086/0.3577, allocations: 302.2 kB / 0.5462 GB, free: 11.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000309/0.358, allocations: 448.3 kB / 0.5466 GB, free: 11.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009454/0.359, allocations: 0.6472 MB / 0.5473 GB, free: 10.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.829e-05/0.359, allocations: 28.36 kB / 0.5473 GB, free: 10.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.3593, allocations: 327.6 kB / 0.5476 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.403e-05/0.3594, allocations: 44.5 kB / 0.5476 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.3595, allocations: 54.64 kB / 0.5477 GB, free: 10.28 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003041/0.3598, allocations: 358.9 kB / 0.548 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.3601, allocations: 81 kB / 0.5481 GB, free: 9.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.3604, allocations: 185.9 kB / 0.5483 GB, free: 9.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005149/0.3609, allocations: 155.9 kB / 0.5484 GB, free: 9.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.361, allocations: 1.375 kB / 0.5484 GB, free: 9.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007273/0.3617, allocations: 246.4 kB / 0.5487 GB, free: 9.484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3617, allocations: 5.25 kB / 0.5487 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3617, allocations: 7.953 kB / 0.5487 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.3617, allocations: 2.156 kB / 0.5487 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.362, allocations: 43.92 kB / 0.5487 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.362, allocations: 5.141 kB / 0.5487 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000408/0.3624, allocations: 51.94 kB / 0.5488 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.3624, allocations: 3.344 kB / 0.5488 GB, free: 9.43 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.0002839/0.3627, allocations: 180.7 kB / 0.549 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.3629, allocations: 60.88 kB / 0.549 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005701/0.3634, allocations: 194.2 kB / 0.5492 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3634, allocations: 1.5 kB / 0.5492 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3634, allocations: 1.219 kB / 0.5492 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3634, allocations: 3.984 kB / 0.5492 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.3641, allocations: 446.7 kB / 0.5496 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3641, allocations: 7.922 kB / 0.5496 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.3643, allocations: 34.59 kB / 0.5497 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3643, allocations: 1.125 kB / 0.5497 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3644, allocations: 9.156 kB / 0.5497 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.3644, allocations: 5.625 kB / 0.5497 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3644, allocations: 0 / 0.5497 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007328/0.3651, allocations: 400 kB / 0.5501 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.3653, allocations: 102.2 kB / 0.5502 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.73e-05/0.3654, allocations: 10.25 kB / 0.5502 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003628/0.3658, allocations: 38.45 kB / 0.5502 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.483e-05/0.3658, allocations: 11.05 kB / 0.5502 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.3658, allocations: 3.031 kB / 0.5502 GB, free: 8.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006165/0.3665, allocations: 470.8 kB / 0.5507 GB, free: 8.066 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3665, allocations: 0 / 0.5507 GB, free: 8.066 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004479/0.3669, allocations: 112 kB / 0.5508 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.002249/0.3692, allocations: 1.198 MB / 0.552 GB, free: 7.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006986/0.3698, allocations: 169.2 kB / 0.5521 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3699, allocations: 1.156 kB / 0.5521 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.3702, allocations: 85.67 kB / 0.5522 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008705/0.371, allocations: 137.1 kB / 0.5523 GB, free: 6.902 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.006132/0.3772, allocations: 3.706 MB / 0.556 GB, free: 4.395 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000553/0.3777, allocations: 0.8856 MB / 0.5568 GB, free: 3.609 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.378, allocations: 66.75 kB / 0.5569 GB, free: 3.578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002828/0.3783, allocations: 201.6 kB / 0.5571 GB, free: 3.406 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3783, allocations: 0 / 0.5571 GB, free: 3.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2814/0.6597, allocations: 10.45 MB / 0.5673 GB, free: 10.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.9, allocations: 6.25 kB / 0.5673 GB, free: 10.23 MB / 414.1 MB " [Timeout remaining time 646] (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: 17.867473427089863] Failed to read output from testmodel.py, exit status != 0: 14.33514898805879 14.352860598 14.000732615 Calling exit ...