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.001102/0.001102, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008464/0.0008464, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 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 0.8917/0.8917, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.1009/0.1009, allocations: 24.12 MB / 283.3 MB, free: 5.484 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 420 MB, free: 8.531 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.494e-05, allocations: 6.219 kB / 420.1 MB, free: 8.523 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.005617/0.005642, allocations: 6.441 MB / 426.5 MB, free: 2.051 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002961/0.008603, allocations: 2.365 MB / 428.9 MB, free: 15.68 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005526/0.009156, allocations: 35.69 kB / 428.9 MB, free: 15.64 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003703/0.009526, allocations: 170.4 kB / 429.1 MB, free: 15.48 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000491/0.01002, allocations: 194.5 kB / 429.2 MB, free: 15.29 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.01056, allocations: 339 kB / 429.6 MB, free: 14.96 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005769/0.01113, allocations: 0.7456 MB / 430.3 MB, free: 14.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003447/0.01148, allocations: 241 kB / 430.6 MB, free: 13.97 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.01179, allocations: 346.9 kB / 430.9 MB, free: 13.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.01193, allocations: 171.3 kB / 431.1 MB, free: 13.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.603e-05/0.01198, allocations: 44 kB / 431.1 MB, free: 13.42 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.01209, allocations: 79.98 kB / 431.2 MB, free: 13.34 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.01221, allocations: 151.3 kB / 431.3 MB, free: 13.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.01232, allocations: 171.4 kB / 431.5 MB, free: 13.03 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.01287, allocations: 0.6422 MB / 432.1 MB, free: 12.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.01287, allocations: 0 / 432.1 MB, free: 12.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01288, allocations: 0 / 432.1 MB, free: 12.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.01288, allocations: 0 / 432.1 MB, free: 12.38 MB / 410.7 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.001076/0.01396, allocations: 0.9437 MB / 433.1 MB, free: 11.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.014, allocations: 8.75 kB / 433.1 MB, free: 11.4 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.523e-05/0.01406, allocations: 82.45 kB / 433.2 MB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.01425, allocations: 103.4 kB / 433.3 MB, free: 11.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.01481, allocations: 436.2 kB / 433.7 MB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.01483, allocations: 29 kB / 433.7 MB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.01486, allocations: 35.98 kB / 433.8 MB, free: 10.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007433/0.01561, allocations: 0.8292 MB / 434.6 MB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.01562, allocations: 0 / 434.6 MB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.01565, allocations: 20 kB / 434.6 MB, free: 9.699 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.01566, allocations: 8 kB / 434.6 MB, free: 9.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004123/0.01607, allocations: 262.3 kB / 434.9 MB, free: 9.434 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.0172, allocations: 0.9785 MB / 435.9 MB, free: 8.406 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.01764, allocations: 177 kB / 436 MB, free: 8.215 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.01777, allocations: 73.67 kB / 436.1 MB, free: 8.137 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.0178, allocations: 4 kB / 436.1 MB, free: 8.133 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.01782, allocations: 42.55 kB / 436.1 MB, free: 8.082 MB / 410.7 MB Notification: Performance of pre-optimization done (n=11): time 2.374e-06/0.01782, allocations: 4 kB / 436.2 MB, free: 8.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005336/0.01836, allocations: 297.6 kB / 436.4 MB, free: 7.781 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.01851, allocations: 441 kB / 436.9 MB, free: 7.246 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006729/0.01918, allocations: 0.6488 MB / 437.5 MB, free: 6.586 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.01923, allocations: 33.64 kB / 437.6 MB, free: 6.547 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.0194, allocations: 320.5 kB / 437.9 MB, free: 6.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.01943, allocations: 39.66 kB / 437.9 MB, free: 6.191 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.713e-05/0.01952, allocations: 61.59 kB / 438 MB, free: 6.125 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.01961, allocations: 358.7 kB / 438.3 MB, free: 5.766 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.01979, allocations: 75.88 kB / 438.4 MB, free: 5.691 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003032/0.02009, allocations: 0.5336 MB / 438.9 MB, free: 5.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.02038, allocations: 162.4 kB / 439.1 MB, free: 4.852 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.02038, allocations: 3.984 kB / 439.1 MB, free: 4.848 MB / 410.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000392/0.02077, allocations: 241.2 kB / 439.3 MB, free: 4.605 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.02079, allocations: 7.969 kB / 439.3 MB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.02079, allocations: 8 kB / 439.3 MB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.02081, allocations: 0 / 439.3 MB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.02094, allocations: 39.95 kB / 439.4 MB, free: 4.551 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.02095, allocations: 3.938 kB / 439.4 MB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001719/0.02112, allocations: 47.84 kB / 439.4 MB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.02113, allocations: 4 kB / 439.4 MB, free: 4.496 MB / 410.7 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.0001627/0.02129, allocations: 189.7 kB / 439.6 MB, free: 4.301 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.02135, allocations: 63.58 kB / 439.7 MB, free: 4.238 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.02168, allocations: 190.9 kB / 439.9 MB, free: 4.039 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.02168, allocations: 0 / 439.9 MB, free: 4.039 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.02168, allocations: 4 kB / 439.9 MB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.02169, allocations: 3.938 kB / 439.9 MB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003735/0.02206, allocations: 404.4 kB / 440.3 MB, free: 3.594 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.02206, allocations: 0 / 440.3 MB, free: 3.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.02217, allocations: 43.89 kB / 440.3 MB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.02217, allocations: 0 / 440.3 MB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.02218, allocations: 4 kB / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.02218, allocations: 0 / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.02218, allocations: 0 / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/0.02256, allocations: 410.3 kB / 440.7 MB, free: 3.129 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.0227, allocations: 93.48 kB / 440.8 MB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.02273, allocations: 11.98 kB / 440.8 MB, free: 3.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.02297, allocations: 35.95 kB / 440.9 MB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.02302, allocations: 15.92 kB / 440.9 MB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.02302, allocations: 4 kB / 440.9 MB, free: 2.969 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003457/0.02337, allocations: 463 kB / 441.3 MB, free: 2.523 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02337, allocations: 3.938 kB / 441.3 MB, free: 2.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002893/0.02366, allocations: 107.6 kB / 441.4 MB, free: 2.414 MB / 410.7 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.001108/0.02477, allocations: 1.22 MB / 442.7 MB, free: 1.324 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003421/0.02511, allocations: 163.8 kB / 442.8 MB, free: 1.164 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.02511, allocations: 4 kB / 442.8 MB, free: 1.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.02525, allocations: 75.88 kB / 442.9 MB, free: 1.086 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005035/0.02576, allocations: 144.1 kB / 443 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1468/0.1726, allocations: 3.699 MB / 446.7 MB, free: 62.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.1727, allocations: 289.4 kB / 447 MB, free: 62.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001824/0.1729, allocations: 58.44 kB / 447.1 MB, free: 62.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.1731, allocations: 204.8 kB / 447.3 MB, free: 62.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.674e-06/0.1731, allocations: 0 / 447.3 MB, free: 62.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.1963, allocations: 11.92 MB / 459.2 MB, free: 60.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.227/7.423, allocations: 3.984 kB / 459.2 MB, free: 60.45 MB / 410.7 MB " [Timeout remaining time 652] (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: 9.458187241107225] Failed to read output from testmodel.py, exit status != 0: 7.524333625100553 7.531757131 7.517060943 Calling exit ...