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.001245/0.001245, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.001391/0.001391, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.439/1.439, allocations: 230.6 MB / 252.8 MB, free: 9 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.1771/0.1771, allocations: 31.56 MB / 340.4 MB, free: 5.156 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.001989/0.001989, allocations: 63.91 kB / 475.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3287, allocations: 60.67 MB / 0.5237 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.00703/0.3357, allocations: 7.095 MB / 0.5307 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00403/0.3398, allocations: 2.289 MB / 0.5329 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.341, allocations: 32.84 kB / 0.5329 GB, free: 220 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005284/0.3415, allocations: 171.3 kB / 0.5331 GB, free: 108 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006632/0.3421, allocations: 184.8 kB / 0.5333 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009667/0.3431, allocations: 334 kB / 0.5336 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.3441, allocations: 0.7286 MB / 0.5343 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004713/0.3446, allocations: 251.4 kB / 0.5345 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003305/0.3449, allocations: 251.7 kB / 0.5348 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002567/0.3452, allocations: 248.6 kB / 0.535 GB, free: 15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.074e-05/0.3453, allocations: 44.91 kB / 0.5351 GB, free: 15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.3455, allocations: 92.38 kB / 0.5352 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.3456, allocations: 149.6 kB / 0.5353 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002572/0.3459, allocations: 293.2 kB / 0.5356 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008769/0.3468, allocations: 0.6544 MB / 0.5362 GB, free: 14.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3468, allocations: 5.031 kB / 0.5362 GB, free: 14.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3468, allocations: 0 / 0.5362 GB, free: 14.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.3468, allocations: 1.375 kB / 0.5362 GB, free: 14.34 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.001636/0.3484, allocations: 1.026 MB / 0.5372 GB, free: 13.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3485, allocations: 9.25 kB / 0.5372 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.3486, allocations: 80.83 kB / 0.5373 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003168/0.3489, allocations: 107.6 kB / 0.5374 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000855/0.3497, allocations: 0.4984 MB / 0.5379 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.3498, allocations: 29.16 kB / 0.5379 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.3498, allocations: 34.81 kB / 0.538 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009017/0.3507, allocations: 472.7 kB / 0.5384 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.3507, allocations: 0 / 0.5384 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.747e-05/0.3508, allocations: 21.38 kB / 0.5384 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3508, allocations: 9.219 kB / 0.5384 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007796/0.3516, allocations: 252.5 kB / 0.5387 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.3538, allocations: 1.119 MB / 0.5398 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007815/0.3546, allocations: 175.9 kB / 0.5399 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.3549, allocations: 74.67 kB / 0.54 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.71e-05/0.3549, allocations: 6.203 kB / 0.54 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.3549, allocations: 41.41 kB / 0.5401 GB, free: 11.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.694e-06/0.3549, allocations: 0 / 0.5401 GB, free: 11.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009975/0.3559, allocations: 306.4 kB / 0.5403 GB, free: 11.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002445/0.3562, allocations: 441.2 kB / 0.5408 GB, free: 10.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008907/0.3571, allocations: 0.6506 MB / 0.5414 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.3571, allocations: 31.45 kB / 0.5414 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000253/0.3574, allocations: 324 kB / 0.5417 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/0.3574, allocations: 36.73 kB / 0.5418 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.3575, allocations: 60.14 kB / 0.5418 GB, free: 9.996 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3577, allocations: 361.2 kB / 0.5422 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.358, allocations: 73.47 kB / 0.5423 GB, free: 9.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.3584, allocations: 187.1 kB / 0.5424 GB, free: 9.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005089/0.3589, allocations: 160.7 kB / 0.5426 GB, free: 9.332 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.3589, allocations: 4 kB / 0.5426 GB, free: 9.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007244/0.3596, allocations: 250 kB / 0.5428 GB, free: 9.188 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.3596, allocations: 7.531 kB / 0.5428 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3596, allocations: 1.375 kB / 0.5428 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.3597, allocations: 5.312 kB / 0.5428 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.3599, allocations: 44.39 kB / 0.5429 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3599, allocations: 1.094 kB / 0.5429 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000389/0.3603, allocations: 47.25 kB / 0.5429 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.3603, allocations: 4.094 kB / 0.5429 GB, free: 9.145 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.000251/0.3606, allocations: 177.3 kB / 0.5431 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.3607, allocations: 59.72 kB / 0.5432 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005484/0.3613, allocations: 198.6 kB / 0.5433 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3613, allocations: 1.328 kB / 0.5433 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3613, allocations: 5.25 kB / 0.5434 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3613, allocations: 1.125 kB / 0.5434 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006278/0.3619, allocations: 481.5 kB / 0.5438 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3619, allocations: 1.438 kB / 0.5438 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002137/0.3621, allocations: 34.58 kB / 0.5438 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3621, allocations: 1.219 kB / 0.5438 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.3621, allocations: 9.469 kB / 0.5439 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3621, allocations: 9.125 kB / 0.5439 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3621, allocations: 0 / 0.5439 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007193/0.3629, allocations: 407.9 kB / 0.5443 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/0.3631, allocations: 173.5 kB / 0.5444 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.899e-05/0.3632, allocations: 10.69 kB / 0.5444 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/0.3636, allocations: 37.95 kB / 0.5445 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.845e-05/0.3636, allocations: 12.11 kB / 0.5445 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.3636, allocations: 2.75 kB / 0.5445 GB, free: 7.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006468/0.3643, allocations: 466.9 kB / 0.5449 GB, free: 7.656 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3643, allocations: 0 / 0.5449 GB, free: 7.656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000492/0.3648, allocations: 104.4 kB / 0.545 GB, free: 7.629 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.002384/0.3672, allocations: 1.206 MB / 0.5462 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000649/0.3678, allocations: 160.8 kB / 0.5464 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3678, allocations: 1.531 kB / 0.5464 GB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.3681, allocations: 86.47 kB / 0.5464 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008744/0.369, allocations: 147.7 kB / 0.5466 GB, free: 6.492 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.006234/0.3752, allocations: 3.719 MB / 0.5502 GB, free: 3.969 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005778/0.3758, allocations: 0.8867 MB / 0.5511 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000287/0.3761, allocations: 61.38 kB / 0.5511 GB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.3764, allocations: 198 kB / 0.5513 GB, free: 2.984 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3764, allocations: 1 kB / 0.5513 GB, free: 2.984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2897/0.6661, allocations: 10.28 MB / 0.5614 GB, free: 11.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.744/9.41, allocations: 8 kB / 0.5614 GB, free: 11.43 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file BusinessSimulation_BusinessSimulation.Examples.LookupFunctions_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 BusinessSimulation_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.405888711989974] Failed to read output from testmodel.py, exit status != 0: 10.750351983995643 10.771481548 10.421175752 Calling exit ...