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.001077/0.001077, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001024/0.001024, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9339/0.9339, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.1082/0.1082, allocations: 24.12 MB / 283.3 MB, free: 5.469 MB / 266.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 0 / 420 MB, free: 8.527 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.633e-05, allocations: 2.844 kB / 420 MB, free: 8.523 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.005926/0.005952, allocations: 6.457 MB / 426.5 MB, free: 2.035 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003059/0.009011, allocations: 2.357 MB / 428.9 MB, free: 15.67 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004955/0.009507, allocations: 31.75 kB / 428.9 MB, free: 15.64 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003672/0.009874, allocations: 170.5 kB / 429.1 MB, free: 15.47 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004598/0.01033, allocations: 202.5 kB / 429.2 MB, free: 15.27 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005093/0.01084, allocations: 338.8 kB / 429.6 MB, free: 14.95 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.01136, allocations: 0.7379 MB / 430.3 MB, free: 14.2 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.0117, allocations: 248.9 kB / 430.6 MB, free: 13.96 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005408/0.01224, allocations: 343 kB / 430.9 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.01237, allocations: 167.3 kB / 431.1 MB, free: 13.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.022e-05/0.01242, allocations: 44 kB / 431.1 MB, free: 13.42 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.01254, allocations: 91.91 kB / 431.2 MB, free: 13.33 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.01264, allocations: 151.3 kB / 431.3 MB, free: 13.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.01275, allocations: 159.4 kB / 431.5 MB, free: 13.02 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00048/0.01323, allocations: 0.65 MB / 432.1 MB, free: 12.37 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.01323, allocations: 0 / 432.1 MB, free: 12.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.01324, allocations: 0 / 432.1 MB, free: 12.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.01324, allocations: 0 / 432.1 MB, free: 12.37 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.001029/0.01427, allocations: 0.935 MB / 433.1 MB, free: 11.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.01431, allocations: 20.73 kB / 433.1 MB, free: 11.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.167e-05/0.01437, allocations: 78.47 kB / 433.2 MB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.01454, allocations: 99.42 kB / 433.3 MB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.01502, allocations: 440.2 kB / 433.7 MB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.01505, allocations: 25 kB / 433.7 MB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.01508, allocations: 36 kB / 433.8 MB, free: 10.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000601/0.01568, allocations: 0.8292 MB / 434.6 MB, free: 9.715 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.01569, allocations: 0 / 434.6 MB, free: 9.715 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.617e-05/0.01571, allocations: 20 kB / 434.6 MB, free: 9.695 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.01572, allocations: 8 kB / 434.6 MB, free: 9.688 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003963/0.01612, allocations: 258.4 kB / 434.9 MB, free: 9.434 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.0172, allocations: 0.9862 MB / 435.9 MB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004109/0.01761, allocations: 177 kB / 436 MB, free: 8.207 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.01774, allocations: 77.61 kB / 436.1 MB, free: 8.125 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.01776, allocations: 3.984 kB / 436.1 MB, free: 8.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.01778, allocations: 42.56 kB / 436.2 MB, free: 8.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.01778, allocations: 0 / 436.2 MB, free: 8.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005166/0.0183, allocations: 293.3 kB / 436.4 MB, free: 7.777 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.01843, allocations: 445 kB / 436.9 MB, free: 7.238 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004909/0.01892, allocations: 0.6449 MB / 437.5 MB, free: 6.582 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.01894, allocations: 33.7 kB / 437.6 MB, free: 6.543 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004056/0.01934, allocations: 324.5 kB / 437.9 MB, free: 6.223 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.01937, allocations: 39.64 kB / 437.9 MB, free: 6.184 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.01943, allocations: 53.61 kB / 438 MB, free: 6.125 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.01953, allocations: 358.8 kB / 438.3 MB, free: 5.766 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.01966, allocations: 75.89 kB / 438.4 MB, free: 5.691 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002904/0.01995, allocations: 0.5374 MB / 438.9 MB, free: 5.016 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.02022, allocations: 158.4 kB / 439.1 MB, free: 4.852 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.02022, allocations: 0 / 439.1 MB, free: 4.852 MB / 410.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000361/0.02058, allocations: 249.3 kB / 439.3 MB, free: 4.602 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.0206, allocations: 4 kB / 439.3 MB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.0206, allocations: 0 / 439.3 MB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.02061, allocations: 4 kB / 439.3 MB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.02073, allocations: 43.89 kB / 439.4 MB, free: 4.551 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.02073, allocations: 3.938 kB / 439.4 MB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.02089, allocations: 51.84 kB / 439.4 MB, free: 4.496 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.0209, allocations: 8 kB / 439.4 MB, free: 4.488 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.0001484/0.02105, allocations: 181.8 kB / 439.6 MB, free: 4.301 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.758e-05/0.02111, allocations: 63.58 kB / 439.7 MB, free: 4.238 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002912/0.0214, allocations: 195.1 kB / 439.9 MB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.0214, allocations: 3.938 kB / 439.9 MB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.02141, allocations: 0 / 439.9 MB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.02141, allocations: 12.16 kB / 439.9 MB, free: 4.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003426/0.02175, allocations: 404.4 kB / 440.3 MB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.02176, allocations: 0 / 440.3 MB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.926e-05/0.02184, allocations: 39.94 kB / 440.3 MB, free: 3.543 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.02185, allocations: 0 / 440.3 MB, free: 3.543 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.02186, allocations: 4 kB / 440.3 MB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.02186, allocations: 4 kB / 440.3 MB, free: 3.535 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.02186, allocations: 0 / 440.3 MB, free: 3.535 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/0.02222, allocations: 418.1 kB / 440.7 MB, free: 3.109 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.02235, allocations: 89.53 kB / 440.8 MB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.02238, allocations: 0 / 440.8 MB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.02255, allocations: 43.95 kB / 440.9 MB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.19e-05/0.02259, allocations: 15.92 kB / 440.9 MB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.0226, allocations: 4 kB / 440.9 MB, free: 2.957 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000337/0.02293, allocations: 463 kB / 441.3 MB, free: 2.512 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02293, allocations: 4 kB / 441.3 MB, free: 2.508 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002693/0.0232, allocations: 107.6 kB / 441.4 MB, free: 2.402 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.001091/0.02429, allocations: 1.213 MB / 442.7 MB, free: 1.316 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003359/0.02463, allocations: 159.8 kB / 442.8 MB, free: 1.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.02463, allocations: 0 / 442.8 MB, free: 1.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.02477, allocations: 83.94 kB / 442.9 MB, free: 1.078 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.02527, allocations: 148.7 kB / 443 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1398/0.165, allocations: 3.695 MB / 446.7 MB, free: 62.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001577/0.1652, allocations: 292.7 kB / 447 MB, free: 62.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.1654, allocations: 55.48 kB / 447.1 MB, free: 62.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.1655, allocations: 205 kB / 447.3 MB, free: 62.52 MB / 410.7 MB Notification: Performance of SimCode: time 8.91e-07/0.1655, allocations: 0 / 447.3 MB, free: 62.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.1862, allocations: 11.92 MB / 459.2 MB, free: 60.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.592, allocations: 3.594 kB / 459.2 MB, free: 60.48 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_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_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.71687428560108] Failed to read output from testmodel.py, exit status != 0: 7.696493444032967 7.707878124 7.692357305 Calling exit ...